SlideShare a Scribd company logo
Variables,
Arguments &
Imports
What you'll learn in this
session
At the end of this session you will be able to:
• Explainwhatvariablesareandwhattheyareusedfor.
• Createandconfigurevariablesinanautomationproject.
• Explainwhatargumentsareandwhattheyareusedfor.
• Differentiatebetweenvariablesandarguments.
• UsetheInvokeWorkflowFileactivitytochainworkflowexecutionandpassdatathrougharguments.
• Bestpracticeswhileusingvariablesandargumentsandnamingconventions
3
What are variables?
Variables are containers that can hold multiple data entries (values) of the same
data type. For example, EmailAddress can be a variable that holds the value
"rpadeveloper@uipath.com".
The value of a variable can change through:
• External input
• Data Manipulation
• Passing from one activity to other
Why are they important?
Variables help us pass data from one activity to another. Advancing with any
automation process would be hardly possible without using variables
Variables
4
There are three main ways to create variables in UiPath:
1. From the Variables panel
Navigate to the Variables panel, select the ‘Create Variable’ line and type in the name.
Whenever needed, provide its name in the Designer panel or in the desired Properties
field.
2. From Expressions
Variables can be created from expressions directly in an activity input field or the
Expression Editor. Select a part of the expression and press Ctrl+K. The Set Var field is
displayed. Fill in the name and press Enter. Check its type and scope in the Variables
panel.
3. From the Properties panel
In the Properties panel of any activity, select a field that can be edited press Ctrl+K. The
Set Var field is displayed. Fill in the name and press Enter. Check its type and scope in
the Variables panel.
Creating Variables
5
Variables are configured through their properties. You can set them in the
Variables panel. The main properties in UiPath are:
1. Name
Navigate to the Variables panel, select the ‘Create Variable’ line and type in the name.
Whenever needed, provide its name in the Designer panel or in the desired Properties
field.
2. Type
It defines what kind of data can be stored in the variable. In UiPath, the type is declared
when the variable is created, however there are some types that can accommodate
different types of data.
3. Default Value
In general, variables have initial values that change throughout the process. For most
variables, if no initial value is assigned when the variable is declared, there is a default
rule that assigns a value.
Configuring Variables
6
4. Scope
The part of the workflow in which the variable can be used. Some variables can be global
(used throughout the workflow), others local (used inside an activity).
In real automation scenarios, there are many variables in use. Making all of them
unnecessarily global can cause efficiency issues as well as create the conditions for
confusion.
In UiPath, the scope of a variable cannot exceed the workflow in which it was defined.
Since business automation projects rarely consist of single workflows, we need a
different kind of vehicle to pass data between workflows, and this is called an argument.
You will learn more about arguments shortly in the session.
7
What are arguments?
Arguments are very similar to variables:
•They store data dynamically
•They have the same data types
•They support the same methods and properties
The difference is that they pass data between workflows, and they have an additional property for
this – the direction. Arguments have specific directions: In, Out, and In/Out. These tell the Robot
where the information stored in them is supposed to go.
Why are they important?
Arguments are a key component when it comes to building more complex automations, where you
need to store and use data between multiple workflows.
Arguments
8
There are three main ways to create variables in UiPath:
1. From expressions
Directly in an activity input field or the Expression Editor. Select a part of the expression
and press Ctrl+M (for In arguments) or Ctrl+Shift+M (for Out arguments). The Set Arg
field is displayed. Fill in the name and press Enter. The argument is created. Check its
direction and type in the Arguments panel. Arguments created in these ways
automatically receive the type according to the activity.
2. From the Properties panel
In the Properties panel of any activity, right-click a field that can be edited, and select
Create In Argument or Create Out Argument from the context menu. Alternatively, press
Ctrl+M (In) or Ctrl+Shift+M (Out). The Set Arg field is displayed.
Fill in the name and press Enter. The argument is created and visible in the field. Check
its direction and type in the Arguments panel. The argument type is automatically
generated depending on the selected property.
Creating Arguments
9
3. From the Arguments Panel
Navigate to the Arguments panel. Select the Create Argument line, and fill in the name,
direction and type. A new argument is created.
10
What is a workflow?
A workflow represents a small piece of automation that you can take and re-use in your
projects. It is basically your canvas, the place where you design and work with all the
UiPath Studio activities and it defines the flow of your automation. Hence the name,
workflow.
Moving data around within these workflows is carried out through a collaboration
between variables and arguments. As discussed, data present in variables of a particular
scope, when needs to be transferred to another workflow, has to be shifted on to an
argument which in turn carries it to the other workflow, and vice-versa. This procedure of
transferring the data from one workflow to another is called Importing.
When we use “Invoke Workflow” activity in UiPath Studio, it provides a panel where we
can map all our input and output arguments to their relevant variable counterparts in the
current workflow. Make sure to keep the direction of the arguments accurate and as per
need for proper flow of data within these workflows.
Importing Data From One Workflow to
Other
11
In UiPath Studio, namespaces represent containers that store different types of data.
They enable you to easily define the scope of your expressions, variables and
arguments.
For example, if you have the System.Data namespace imported, you can further
use DataTable, DataView, DataColumn, DataRow and other classes that are available in it,
without having to always type System.Data.DataTable and so on.
You can view and manage namespaces from the Data Manager or from
the Imports panel. Note that some namespaces are automatically imported when you
browse for a .Net type variable or argument.
About Imported Namespaces
12
Meaningful names should be assigned to workflow files, activities, arguments, and
variables in order to accurately describe their usage throughout the project.
To improve readability, variable and argument names should also align to a naming
convention:
•Snake case: First1_Name2, first_name2,
•Upper or lower Camel case: FirstName, lastName,
•Pascal case: First1Name2, First1Name,
•Kebab case: First-Name, First-Name1
Argument names should have a prefix stating the argument type, such as:
in_DefaultTimeout, in_FileName, out_TextResult, io_RetryNumber
Naming Conventions
13
Quiz Time!
menti.com Code : 3155 1460
14
QnA
THANK YOU!

More Related Content

Similar to Variables, Arguments & Imports.pptx

Variables Arguments and control flow_UiPath.ppt
Variables Arguments and control flow_UiPath.pptVariables Arguments and control flow_UiPath.ppt
Variables Arguments and control flow_UiPath.ppt
Rohit Radhakrishnan
 
Oracle report from ppt
Oracle report from pptOracle report from ppt
Oracle report from ppt
kingshuk_goswami
 
UiPath Development Best Practices.pptx
UiPath Development Best Practices.pptxUiPath Development Best Practices.pptx
UiPath Development Best Practices.pptx
ApurbaSamanta9
 
Introduction to Visual Basic
Introduction to Visual Basic Introduction to Visual Basic
E learning excel vba programming lesson 3
E learning excel vba programming  lesson 3E learning excel vba programming  lesson 3
E learning excel vba programming lesson 3
Vijay Perepa
 
Salesforce integration questions
Salesforce integration questionsSalesforce integration questions
Salesforce integration questions
Debabrat Rout
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
mehramit
 
Alteryx Presentation
Alteryx PresentationAlteryx Presentation
Alteryx Presentation
Mohd Abu Taurab
 
Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes
arvind pandey
 
AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1
guest38bf
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentation
techgajanan
 
GUI Programming in JAVA (Using Netbeans) - A Review
GUI Programming in JAVA (Using Netbeans) -  A ReviewGUI Programming in JAVA (Using Netbeans) -  A Review
GUI Programming in JAVA (Using Netbeans) - A Review
Fernando Torres
 
Obiee interview questions and answers faq
Obiee interview questions and answers faqObiee interview questions and answers faq
Obiee interview questions and answers faq
maheshboggula
 
Issues in Query Processing and Optimization
Issues in Query Processing and OptimizationIssues in Query Processing and Optimization
Issues in Query Processing and Optimization
Editor IJMTER
 
Informatica cloud Powercenter designer
Informatica cloud Powercenter designerInformatica cloud Powercenter designer
Informatica cloud Powercenter designer
Rameswara Reddy
 
UNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptxUNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptx
BhagyasriPatel2
 
6.2\9 SSIS 2008R2_Training - DataFlow Transformations
6.2\9 SSIS 2008R2_Training - DataFlow Transformations6.2\9 SSIS 2008R2_Training - DataFlow Transformations
6.2\9 SSIS 2008R2_Training - DataFlow Transformations
Pramod Singla
 
UNIT - 1 Part 2: Data Warehousing and Data Mining
UNIT - 1 Part 2: Data Warehousing and Data MiningUNIT - 1 Part 2: Data Warehousing and Data Mining
UNIT - 1 Part 2: Data Warehousing and Data Mining
Nandakumar P
 
Technical Interview
Technical InterviewTechnical Interview
Technical Interview
prashant patel
 
ISC APPS FORMS BY SWAROOP
ISC APPS FORMS BY SWAROOP ISC APPS FORMS BY SWAROOP
ISC APPS FORMS BY SWAROOP
Anil Kumar
 

Similar to Variables, Arguments & Imports.pptx (20)

Variables Arguments and control flow_UiPath.ppt
Variables Arguments and control flow_UiPath.pptVariables Arguments and control flow_UiPath.ppt
Variables Arguments and control flow_UiPath.ppt
 
Oracle report from ppt
Oracle report from pptOracle report from ppt
Oracle report from ppt
 
UiPath Development Best Practices.pptx
UiPath Development Best Practices.pptxUiPath Development Best Practices.pptx
UiPath Development Best Practices.pptx
 
Introduction to Visual Basic
Introduction to Visual Basic Introduction to Visual Basic
Introduction to Visual Basic
 
E learning excel vba programming lesson 3
E learning excel vba programming  lesson 3E learning excel vba programming  lesson 3
E learning excel vba programming lesson 3
 
Salesforce integration questions
Salesforce integration questionsSalesforce integration questions
Salesforce integration questions
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
Alteryx Presentation
Alteryx PresentationAlteryx Presentation
Alteryx Presentation
 
Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes
 
AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1AVB201.1 MS Access VBA Module 1
AVB201.1 MS Access VBA Module 1
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentation
 
GUI Programming in JAVA (Using Netbeans) - A Review
GUI Programming in JAVA (Using Netbeans) -  A ReviewGUI Programming in JAVA (Using Netbeans) -  A Review
GUI Programming in JAVA (Using Netbeans) - A Review
 
Obiee interview questions and answers faq
Obiee interview questions and answers faqObiee interview questions and answers faq
Obiee interview questions and answers faq
 
Issues in Query Processing and Optimization
Issues in Query Processing and OptimizationIssues in Query Processing and Optimization
Issues in Query Processing and Optimization
 
Informatica cloud Powercenter designer
Informatica cloud Powercenter designerInformatica cloud Powercenter designer
Informatica cloud Powercenter designer
 
UNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptxUNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptx
 
6.2\9 SSIS 2008R2_Training - DataFlow Transformations
6.2\9 SSIS 2008R2_Training - DataFlow Transformations6.2\9 SSIS 2008R2_Training - DataFlow Transformations
6.2\9 SSIS 2008R2_Training - DataFlow Transformations
 
UNIT - 1 Part 2: Data Warehousing and Data Mining
UNIT - 1 Part 2: Data Warehousing and Data MiningUNIT - 1 Part 2: Data Warehousing and Data Mining
UNIT - 1 Part 2: Data Warehousing and Data Mining
 
Technical Interview
Technical InterviewTechnical Interview
Technical Interview
 
ISC APPS FORMS BY SWAROOP
ISC APPS FORMS BY SWAROOP ISC APPS FORMS BY SWAROOP
ISC APPS FORMS BY SWAROOP
 

More from ApurbaSamanta9

Exception Handling in UiPath.pptx
Exception Handling in UiPath.pptxException Handling in UiPath.pptx
Exception Handling in UiPath.pptx
ApurbaSamanta9
 
Debugging in UiPath.pptx
Debugging in UiPath.pptxDebugging in UiPath.pptx
Debugging in UiPath.pptx
ApurbaSamanta9
 
UiPath Logs.pptx
UiPath Logs.pptxUiPath Logs.pptx
UiPath Logs.pptx
ApurbaSamanta9
 
UI Automation with UiPath.pptx
UI Automation with UiPath.pptxUI Automation with UiPath.pptx
UI Automation with UiPath.pptx
ApurbaSamanta9
 
Email Automation.pptx
Email Automation.pptxEmail Automation.pptx
Email Automation.pptx
ApurbaSamanta9
 
Introducing Excel Automation.pptx
Introducing Excel Automation.pptxIntroducing Excel Automation.pptx
Introducing Excel Automation.pptx
ApurbaSamanta9
 
Types of Workflow.pptx
Types of Workflow.pptxTypes of Workflow.pptx
Types of Workflow.pptx
ApurbaSamanta9
 
Familiarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptxFamiliarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptx
ApurbaSamanta9
 
Automation Vidyalaya - Introduction to RPA & UiPath.pptx
Automation Vidyalaya - Introduction to RPA & UiPath.pptxAutomation Vidyalaya - Introduction to RPA & UiPath.pptx
Automation Vidyalaya - Introduction to RPA & UiPath.pptx
ApurbaSamanta9
 

More from ApurbaSamanta9 (9)

Exception Handling in UiPath.pptx
Exception Handling in UiPath.pptxException Handling in UiPath.pptx
Exception Handling in UiPath.pptx
 
Debugging in UiPath.pptx
Debugging in UiPath.pptxDebugging in UiPath.pptx
Debugging in UiPath.pptx
 
UiPath Logs.pptx
UiPath Logs.pptxUiPath Logs.pptx
UiPath Logs.pptx
 
UI Automation with UiPath.pptx
UI Automation with UiPath.pptxUI Automation with UiPath.pptx
UI Automation with UiPath.pptx
 
Email Automation.pptx
Email Automation.pptxEmail Automation.pptx
Email Automation.pptx
 
Introducing Excel Automation.pptx
Introducing Excel Automation.pptxIntroducing Excel Automation.pptx
Introducing Excel Automation.pptx
 
Types of Workflow.pptx
Types of Workflow.pptxTypes of Workflow.pptx
Types of Workflow.pptx
 
Familiarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptxFamiliarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptx
 
Automation Vidyalaya - Introduction to RPA & UiPath.pptx
Automation Vidyalaya - Introduction to RPA & UiPath.pptxAutomation Vidyalaya - Introduction to RPA & UiPath.pptx
Automation Vidyalaya - Introduction to RPA & UiPath.pptx
 

Recently uploaded

220711130091 SUPARNA GHOSH Social Networking.pptx
220711130091 SUPARNA GHOSH Social Networking.pptx220711130091 SUPARNA GHOSH Social Networking.pptx
220711130091 SUPARNA GHOSH Social Networking.pptx
Kalna College
 
hISTORY OF THE jEWISH COMMUNITY IN ROMANIA.pdf
hISTORY OF THE jEWISH COMMUNITY IN ROMANIA.pdfhISTORY OF THE jEWISH COMMUNITY IN ROMANIA.pdf
hISTORY OF THE jEWISH COMMUNITY IN ROMANIA.pdf
zuzanka
 
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan ChartSatta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
Mohit Tripathi
 
Book Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docxBook Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docx
drtech3715
 
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptxNationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
CelestineMiranda
 
Discount and Loyalty Programs in Odoo 17 Sales
Discount and Loyalty Programs in Odoo 17 SalesDiscount and Loyalty Programs in Odoo 17 Sales
Discount and Loyalty Programs in Odoo 17 Sales
Celine George
 
Beginner's Guide to Bypassing Falco Container Runtime Security in Kubernetes ...
Beginner's Guide to Bypassing Falco Container Runtime Security in Kubernetes ...Beginner's Guide to Bypassing Falco Container Runtime Security in Kubernetes ...
Beginner's Guide to Bypassing Falco Container Runtime Security in Kubernetes ...
anjaliinfosec
 
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALARINTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
DrRkurinjiMalarkurin
 
Final ebook Keeping the Memory @live.pdf
Final ebook Keeping the Memory @live.pdfFinal ebook Keeping the Memory @live.pdf
Final ebook Keeping the Memory @live.pdf
Zuzana Mészárosová
 
Total and Subtotal in Reports in Odoo 17
Total and Subtotal in Reports in Odoo 17Total and Subtotal in Reports in Odoo 17
Total and Subtotal in Reports in Odoo 17
Celine George
 
Storytelling for Technical Talks: Building Influence with Stakeholders
Storytelling for Technical Talks: Building Influence with StakeholdersStorytelling for Technical Talks: Building Influence with Stakeholders
Storytelling for Technical Talks: Building Influence with Stakeholders
MattVassar1
 
Righteous among Nations - eTwinning e-book (1).pdf
Righteous among Nations - eTwinning e-book (1).pdfRighteous among Nations - eTwinning e-book (1).pdf
Righteous among Nations - eTwinning e-book (1).pdf
Zuzana Mészárosová
 
Cross-Cultural Leadership and Communication
Cross-Cultural Leadership and CommunicationCross-Cultural Leadership and Communication
Cross-Cultural Leadership and Communication
MattVassar1
 
debts of gratitude 1 and silent b activity.pptx
debts of gratitude 1 and silent b activity.pptxdebts of gratitude 1 and silent b activity.pptx
debts of gratitude 1 and silent b activity.pptx
AncyTEnglish
 
Role of NCERT and SCERT in Indian Education System.
Role of NCERT and SCERT in Indian Education System.Role of NCERT and SCERT in Indian Education System.
Role of NCERT and SCERT in Indian Education System.
tanishq87
 
AI_in_HR_Presentation Part 1 2024 0703.pdf
AI_in_HR_Presentation Part 1 2024 0703.pdfAI_in_HR_Presentation Part 1 2024 0703.pdf
AI_in_HR_Presentation Part 1 2024 0703.pdf
SrimanigandanMadurai
 
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH LỚP 9 - GLOBAL SUCCESS - FORM MỚI 2025 - C...
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH LỚP 9 - GLOBAL SUCCESS - FORM MỚI 2025 - C...BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH LỚP 9 - GLOBAL SUCCESS - FORM MỚI 2025 - C...
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH LỚP 9 - GLOBAL SUCCESS - FORM MỚI 2025 - C...
Nguyen Thanh Tu Collection
 
How to Configure Prevent Sale of Zero Priced Product in Odoo 17 Website
How to Configure Prevent Sale of Zero Priced Product in Odoo 17 WebsiteHow to Configure Prevent Sale of Zero Priced Product in Odoo 17 Website
How to Configure Prevent Sale of Zero Priced Product in Odoo 17 Website
Celine George
 
Top Profile Creation Sites List - Boost Your Online Presence
Top Profile Creation Sites List - Boost Your Online PresenceTop Profile Creation Sites List - Boost Your Online Presence
Top Profile Creation Sites List - Boost Your Online Presence
monikakhanna42677
 
Will AI in education help students live fulfilling lives Andreas Schleicher 2...
Will AI in education help students live fulfilling lives Andreas Schleicher 2...Will AI in education help students live fulfilling lives Andreas Schleicher 2...
Will AI in education help students live fulfilling lives Andreas Schleicher 2...
EduSkills OECD
 

Recently uploaded (20)

220711130091 SUPARNA GHOSH Social Networking.pptx
220711130091 SUPARNA GHOSH Social Networking.pptx220711130091 SUPARNA GHOSH Social Networking.pptx
220711130091 SUPARNA GHOSH Social Networking.pptx
 
hISTORY OF THE jEWISH COMMUNITY IN ROMANIA.pdf
hISTORY OF THE jEWISH COMMUNITY IN ROMANIA.pdfhISTORY OF THE jEWISH COMMUNITY IN ROMANIA.pdf
hISTORY OF THE jEWISH COMMUNITY IN ROMANIA.pdf
 
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan ChartSatta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
 
Book Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docxBook Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docx
 
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptxNationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
 
Discount and Loyalty Programs in Odoo 17 Sales
Discount and Loyalty Programs in Odoo 17 SalesDiscount and Loyalty Programs in Odoo 17 Sales
Discount and Loyalty Programs in Odoo 17 Sales
 
Beginner's Guide to Bypassing Falco Container Runtime Security in Kubernetes ...
Beginner's Guide to Bypassing Falco Container Runtime Security in Kubernetes ...Beginner's Guide to Bypassing Falco Container Runtime Security in Kubernetes ...
Beginner's Guide to Bypassing Falco Container Runtime Security in Kubernetes ...
 
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALARINTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
INTRODUCTION TO MICRO ECONOMICS Dr. R. KURINJI MALAR
 
Final ebook Keeping the Memory @live.pdf
Final ebook Keeping the Memory @live.pdfFinal ebook Keeping the Memory @live.pdf
Final ebook Keeping the Memory @live.pdf
 
Total and Subtotal in Reports in Odoo 17
Total and Subtotal in Reports in Odoo 17Total and Subtotal in Reports in Odoo 17
Total and Subtotal in Reports in Odoo 17
 
Storytelling for Technical Talks: Building Influence with Stakeholders
Storytelling for Technical Talks: Building Influence with StakeholdersStorytelling for Technical Talks: Building Influence with Stakeholders
Storytelling for Technical Talks: Building Influence with Stakeholders
 
Righteous among Nations - eTwinning e-book (1).pdf
Righteous among Nations - eTwinning e-book (1).pdfRighteous among Nations - eTwinning e-book (1).pdf
Righteous among Nations - eTwinning e-book (1).pdf
 
Cross-Cultural Leadership and Communication
Cross-Cultural Leadership and CommunicationCross-Cultural Leadership and Communication
Cross-Cultural Leadership and Communication
 
debts of gratitude 1 and silent b activity.pptx
debts of gratitude 1 and silent b activity.pptxdebts of gratitude 1 and silent b activity.pptx
debts of gratitude 1 and silent b activity.pptx
 
Role of NCERT and SCERT in Indian Education System.
Role of NCERT and SCERT in Indian Education System.Role of NCERT and SCERT in Indian Education System.
Role of NCERT and SCERT in Indian Education System.
 
AI_in_HR_Presentation Part 1 2024 0703.pdf
AI_in_HR_Presentation Part 1 2024 0703.pdfAI_in_HR_Presentation Part 1 2024 0703.pdf
AI_in_HR_Presentation Part 1 2024 0703.pdf
 
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH LỚP 9 - GLOBAL SUCCESS - FORM MỚI 2025 - C...
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH LỚP 9 - GLOBAL SUCCESS - FORM MỚI 2025 - C...BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH LỚP 9 - GLOBAL SUCCESS - FORM MỚI 2025 - C...
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH LỚP 9 - GLOBAL SUCCESS - FORM MỚI 2025 - C...
 
How to Configure Prevent Sale of Zero Priced Product in Odoo 17 Website
How to Configure Prevent Sale of Zero Priced Product in Odoo 17 WebsiteHow to Configure Prevent Sale of Zero Priced Product in Odoo 17 Website
How to Configure Prevent Sale of Zero Priced Product in Odoo 17 Website
 
Top Profile Creation Sites List - Boost Your Online Presence
Top Profile Creation Sites List - Boost Your Online PresenceTop Profile Creation Sites List - Boost Your Online Presence
Top Profile Creation Sites List - Boost Your Online Presence
 
Will AI in education help students live fulfilling lives Andreas Schleicher 2...
Will AI in education help students live fulfilling lives Andreas Schleicher 2...Will AI in education help students live fulfilling lives Andreas Schleicher 2...
Will AI in education help students live fulfilling lives Andreas Schleicher 2...
 

Variables, Arguments & Imports.pptx

  • 2. What you'll learn in this session At the end of this session you will be able to: • Explainwhatvariablesareandwhattheyareusedfor. • Createandconfigurevariablesinanautomationproject. • Explainwhatargumentsareandwhattheyareusedfor. • Differentiatebetweenvariablesandarguments. • UsetheInvokeWorkflowFileactivitytochainworkflowexecutionandpassdatathrougharguments. • Bestpracticeswhileusingvariablesandargumentsandnamingconventions
  • 3. 3 What are variables? Variables are containers that can hold multiple data entries (values) of the same data type. For example, EmailAddress can be a variable that holds the value "rpadeveloper@uipath.com". The value of a variable can change through: • External input • Data Manipulation • Passing from one activity to other Why are they important? Variables help us pass data from one activity to another. Advancing with any automation process would be hardly possible without using variables Variables
  • 4. 4 There are three main ways to create variables in UiPath: 1. From the Variables panel Navigate to the Variables panel, select the ‘Create Variable’ line and type in the name. Whenever needed, provide its name in the Designer panel or in the desired Properties field. 2. From Expressions Variables can be created from expressions directly in an activity input field or the Expression Editor. Select a part of the expression and press Ctrl+K. The Set Var field is displayed. Fill in the name and press Enter. Check its type and scope in the Variables panel. 3. From the Properties panel In the Properties panel of any activity, select a field that can be edited press Ctrl+K. The Set Var field is displayed. Fill in the name and press Enter. Check its type and scope in the Variables panel. Creating Variables
  • 5. 5 Variables are configured through their properties. You can set them in the Variables panel. The main properties in UiPath are: 1. Name Navigate to the Variables panel, select the ‘Create Variable’ line and type in the name. Whenever needed, provide its name in the Designer panel or in the desired Properties field. 2. Type It defines what kind of data can be stored in the variable. In UiPath, the type is declared when the variable is created, however there are some types that can accommodate different types of data. 3. Default Value In general, variables have initial values that change throughout the process. For most variables, if no initial value is assigned when the variable is declared, there is a default rule that assigns a value. Configuring Variables
  • 6. 6 4. Scope The part of the workflow in which the variable can be used. Some variables can be global (used throughout the workflow), others local (used inside an activity). In real automation scenarios, there are many variables in use. Making all of them unnecessarily global can cause efficiency issues as well as create the conditions for confusion. In UiPath, the scope of a variable cannot exceed the workflow in which it was defined. Since business automation projects rarely consist of single workflows, we need a different kind of vehicle to pass data between workflows, and this is called an argument. You will learn more about arguments shortly in the session.
  • 7. 7 What are arguments? Arguments are very similar to variables: •They store data dynamically •They have the same data types •They support the same methods and properties The difference is that they pass data between workflows, and they have an additional property for this – the direction. Arguments have specific directions: In, Out, and In/Out. These tell the Robot where the information stored in them is supposed to go. Why are they important? Arguments are a key component when it comes to building more complex automations, where you need to store and use data between multiple workflows. Arguments
  • 8. 8 There are three main ways to create variables in UiPath: 1. From expressions Directly in an activity input field or the Expression Editor. Select a part of the expression and press Ctrl+M (for In arguments) or Ctrl+Shift+M (for Out arguments). The Set Arg field is displayed. Fill in the name and press Enter. The argument is created. Check its direction and type in the Arguments panel. Arguments created in these ways automatically receive the type according to the activity. 2. From the Properties panel In the Properties panel of any activity, right-click a field that can be edited, and select Create In Argument or Create Out Argument from the context menu. Alternatively, press Ctrl+M (In) or Ctrl+Shift+M (Out). The Set Arg field is displayed. Fill in the name and press Enter. The argument is created and visible in the field. Check its direction and type in the Arguments panel. The argument type is automatically generated depending on the selected property. Creating Arguments
  • 9. 9 3. From the Arguments Panel Navigate to the Arguments panel. Select the Create Argument line, and fill in the name, direction and type. A new argument is created.
  • 10. 10 What is a workflow? A workflow represents a small piece of automation that you can take and re-use in your projects. It is basically your canvas, the place where you design and work with all the UiPath Studio activities and it defines the flow of your automation. Hence the name, workflow. Moving data around within these workflows is carried out through a collaboration between variables and arguments. As discussed, data present in variables of a particular scope, when needs to be transferred to another workflow, has to be shifted on to an argument which in turn carries it to the other workflow, and vice-versa. This procedure of transferring the data from one workflow to another is called Importing. When we use “Invoke Workflow” activity in UiPath Studio, it provides a panel where we can map all our input and output arguments to their relevant variable counterparts in the current workflow. Make sure to keep the direction of the arguments accurate and as per need for proper flow of data within these workflows. Importing Data From One Workflow to Other
  • 11. 11 In UiPath Studio, namespaces represent containers that store different types of data. They enable you to easily define the scope of your expressions, variables and arguments. For example, if you have the System.Data namespace imported, you can further use DataTable, DataView, DataColumn, DataRow and other classes that are available in it, without having to always type System.Data.DataTable and so on. You can view and manage namespaces from the Data Manager or from the Imports panel. Note that some namespaces are automatically imported when you browse for a .Net type variable or argument. About Imported Namespaces
  • 12. 12 Meaningful names should be assigned to workflow files, activities, arguments, and variables in order to accurately describe their usage throughout the project. To improve readability, variable and argument names should also align to a naming convention: •Snake case: First1_Name2, first_name2, •Upper or lower Camel case: FirstName, lastName, •Pascal case: First1Name2, First1Name, •Kebab case: First-Name, First-Name1 Argument names should have a prefix stating the argument type, such as: in_DefaultTimeout, in_FileName, out_TextResult, io_RetryNumber Naming Conventions