Variable and
Arguments in UiPath
2
• RPA Developer
• 1.2 years of experience
• LinkedIn :
https://www.linkedin.com/in/sharwaree-nimbalkar/
• YouTube :
https://www.youtube.com/@LearnAndRobotizewithSharwaree
Sharwaree Nimbalkar
3
1. Variable and Arguments Creation
2. Create and configure variable along with scope
3. Data Types
4. Create and configure arguments along with directions
5. Methods to Create Variable and Arguments
- Assign
- Variable Panel
- Arguments Panel
6. Differences between Variable and Arguments
7. Learning Resources
Key Take Aways…
4
What is Variable and Arguments ?
Variables and Arguments are containers that can hold multiple data
entries (values) of the same data type.
E.g: EmailAddress can be a variable that holds the value
“rpadeveloper@uipath.com”
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 where Arguments help us to pass data
between multiple workflows.
You can create variable and arguments in two ways,
• Using Assign Activity
• Variable/Argument Panel
1. Variable and Arguments Creation
5
• Variables are configured through their properties. You can set them in
the Variables panel. The Variables panel enables you to create variables
and make changes to them.
• The graphic shows the Variables panel and the main properties in
UiPath: Name, Variable type, Scope, and Default
• We can pass the value from one sequence to another sequence with the
help of Scope
2. Create and configure variable along with scope
6
It defines what kind of data is stored in the variable. In UiPath, the data type
is declared when the variable is created.
The dropdown field provides quick access to the most used data types, but
there are many more options available to you, if you select "Browse for
Types".
1.Boolean
2.Int32
3.String
4.Object
5.System.Data.DataTable
6.Array of [T]
7.Browse for Types
Variables Types
7
3. Datatypes
What are data types?
Data Types describe what type of data a variable can hold.
For example, if the data type is Int32, then the variable must hold an integer
number.
Likewise, if the data type is a String, then the variable must hold a text.
Variables and arguments in Studio need to have a specific data type defined.
This makes sure that the right data format is applied at each stage of an
automated process.
8
4. Create and configure arguments along with directions
Arguments are very similar to variables:
• They store data dynamically and have 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.
9
5. Methods to Create Variable and Arguments
Variable Creation using Assign & Variable panel :
Variable Name
Value
Detailed Process Map
• Drag and Drop the Assign Activity from Activity panel
• Ctrl+K to Create variable with valid name (without space)
• Once you can create the variable you can see it under variable panel or you can directly create it under variable panel
• Change the Variable type/datatype based upon the value of variable
• Change scope to access the variable in multiple sequence on single workflow file.
10
Argument Creation using Assign & Argument Panel:
Argument Name
Value
Declaring Arguments using Assign Activity are very similar to variables
Detailed Process Map
• Drag and Drop the Assign Activity from Activity panel
• Ctrl+Shift+M to Create an Out-Arguments with valid name (without space)
• Ctrl+M to Create an In-Arguments with valid name (without space)
• Once you can create the variable you can see it under arguments panel or you can directly create it under Argument panel along with direction
• Change the Argument type/datatype based upon the value of variable
• In-Direction is used to pull the value inside the workflow and Out-Direction is used to send/push the value outside the workflow.
• In/out-Direction is used for both push/pull the value from the workflow
11
Differences between Variable and Arguments
Let's list out the differences between them.
Control Flow
Activities
13
In UiPath, control flow activities refer to the set of activities that control the flow of
execution of a workflow within a UiPath project. These activities allow for decision
making and the manipulation of the flow of execution based on certain conditions.
What is Control Flow Activities?
14
o Assign Activity
o Do While Activity
o While Activity
o If Activity
o For Each Activity
o Switch Activity
o Break Activity
Control Flow Activities and when to use what?
15
The Assign activity allows for values to be assigned to variables, which can then be used in
other activities or as input/output for workflows.
It can store different data types, such as strings, integers, and Booleans, and be used to
perform basic arithmetic operations and manipulate the values stored in variables.
The Assign Activity
16
The Assign Activity
Variable Name Value
Variable Type - String
17
The Assign Activity
Variable Name Value
Variable Type – Integer(Int32)
18
The If activity in UiPath is a conditional activity that allows for branching based on a specified
condition.
If Activity
19
Switch Activity
The "Switch" activity is used to perform different actions based on a specified
expression or variable.
It acts like a series of "If" statements, but is more compact and easier to read
when there are multiple cases.
20
What is Loop?
Loops are used to automate repetitive tasks and to perform the
same set of activities multiple times until a certain condition is met.
21
The Do While activity is a looping activity that
allows for a set of activities to be executed
repeatedly until a specified condition is met.
Do While Activity
Output
22
The While activity is a looping activity that allows a
set of activities to be executed repeatedly while a
specified condition is met.
While Activity
Output
23
The For Each activity is a looping activity that allows for repeating
a set of activities for each item in a collection, such as a list, array,
or dictionary.
It is used to automate repetitive tasks, such as processing data
from a list or performing the same operation on each item in a
collection.
For Each Activity
24
For Each Activity
collection, list, array, or dictionary
25
Break Activity
The "Break" activity in UiPath is used to interrupt the
execution of a loop and skip the remaining iterations.
26
7. Learning Resources
1. https://docs.uipath.com/studio/docs/managing-variables
2. https://docs.uipath.com/studio/docs/the-variables-panel
3. https://docs.uipath.com/studio/docs/types-of-variables
4. https://docs.uipath.com/studio/docs/managing-arguments
5. https://docs.uipath.com/studio/docs/the-arguments-panel
6. https://docs.uipath.com/studio/docs/using-arguments
27
Academy
• Get crowdsourced support and share product feedback on UiPath Forum
• Check the product documentation
Forum
Community Events
• Connect with like-minded people and share best practices with the UiPath
Community
• Solve challenges in engaging hackathon competitions
• Join meetups and conferences
• Learn the skills of the future on UiPath Academy or through our Academic Alliance
• Earn globally recognized credentials with UiPath Certifications
Vibrant ecosystem of more than 2 million professionals and citizen developers learning,
getting support, and succeeding together in their automation careers.
28
Thank You

Variable and Arguments_4.pptx

  • 1.
  • 2.
    2 • RPA Developer •1.2 years of experience • LinkedIn : https://www.linkedin.com/in/sharwaree-nimbalkar/ • YouTube : https://www.youtube.com/@LearnAndRobotizewithSharwaree Sharwaree Nimbalkar
  • 3.
    3 1. Variable andArguments Creation 2. Create and configure variable along with scope 3. Data Types 4. Create and configure arguments along with directions 5. Methods to Create Variable and Arguments - Assign - Variable Panel - Arguments Panel 6. Differences between Variable and Arguments 7. Learning Resources Key Take Aways…
  • 4.
    4 What is Variableand Arguments ? Variables and Arguments are containers that can hold multiple data entries (values) of the same data type. E.g: EmailAddress can be a variable that holds the value “rpadeveloper@uipath.com” 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 where Arguments help us to pass data between multiple workflows. You can create variable and arguments in two ways, • Using Assign Activity • Variable/Argument Panel 1. Variable and Arguments Creation
  • 5.
    5 • Variables areconfigured through their properties. You can set them in the Variables panel. The Variables panel enables you to create variables and make changes to them. • The graphic shows the Variables panel and the main properties in UiPath: Name, Variable type, Scope, and Default • We can pass the value from one sequence to another sequence with the help of Scope 2. Create and configure variable along with scope
  • 6.
    6 It defines whatkind of data is stored in the variable. In UiPath, the data type is declared when the variable is created. The dropdown field provides quick access to the most used data types, but there are many more options available to you, if you select "Browse for Types". 1.Boolean 2.Int32 3.String 4.Object 5.System.Data.DataTable 6.Array of [T] 7.Browse for Types Variables Types
  • 7.
    7 3. Datatypes What aredata types? Data Types describe what type of data a variable can hold. For example, if the data type is Int32, then the variable must hold an integer number. Likewise, if the data type is a String, then the variable must hold a text. Variables and arguments in Studio need to have a specific data type defined. This makes sure that the right data format is applied at each stage of an automated process.
  • 8.
    8 4. Create andconfigure arguments along with directions Arguments are very similar to variables: • They store data dynamically and have 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.
  • 9.
    9 5. Methods toCreate Variable and Arguments Variable Creation using Assign & Variable panel : Variable Name Value Detailed Process Map • Drag and Drop the Assign Activity from Activity panel • Ctrl+K to Create variable with valid name (without space) • Once you can create the variable you can see it under variable panel or you can directly create it under variable panel • Change the Variable type/datatype based upon the value of variable • Change scope to access the variable in multiple sequence on single workflow file.
  • 10.
    10 Argument Creation usingAssign & Argument Panel: Argument Name Value Declaring Arguments using Assign Activity are very similar to variables Detailed Process Map • Drag and Drop the Assign Activity from Activity panel • Ctrl+Shift+M to Create an Out-Arguments with valid name (without space) • Ctrl+M to Create an In-Arguments with valid name (without space) • Once you can create the variable you can see it under arguments panel or you can directly create it under Argument panel along with direction • Change the Argument type/datatype based upon the value of variable • In-Direction is used to pull the value inside the workflow and Out-Direction is used to send/push the value outside the workflow. • In/out-Direction is used for both push/pull the value from the workflow
  • 11.
    11 Differences between Variableand Arguments Let's list out the differences between them.
  • 12.
  • 13.
    13 In UiPath, controlflow activities refer to the set of activities that control the flow of execution of a workflow within a UiPath project. These activities allow for decision making and the manipulation of the flow of execution based on certain conditions. What is Control Flow Activities?
  • 14.
    14 o Assign Activity oDo While Activity o While Activity o If Activity o For Each Activity o Switch Activity o Break Activity Control Flow Activities and when to use what?
  • 15.
    15 The Assign activityallows for values to be assigned to variables, which can then be used in other activities or as input/output for workflows. It can store different data types, such as strings, integers, and Booleans, and be used to perform basic arithmetic operations and manipulate the values stored in variables. The Assign Activity
  • 16.
    16 The Assign Activity VariableName Value Variable Type - String
  • 17.
    17 The Assign Activity VariableName Value Variable Type – Integer(Int32)
  • 18.
    18 The If activityin UiPath is a conditional activity that allows for branching based on a specified condition. If Activity
  • 19.
    19 Switch Activity The "Switch"activity is used to perform different actions based on a specified expression or variable. It acts like a series of "If" statements, but is more compact and easier to read when there are multiple cases.
  • 20.
    20 What is Loop? Loopsare used to automate repetitive tasks and to perform the same set of activities multiple times until a certain condition is met.
  • 21.
    21 The Do Whileactivity is a looping activity that allows for a set of activities to be executed repeatedly until a specified condition is met. Do While Activity Output
  • 22.
    22 The While activityis a looping activity that allows a set of activities to be executed repeatedly while a specified condition is met. While Activity Output
  • 23.
    23 The For Eachactivity is a looping activity that allows for repeating a set of activities for each item in a collection, such as a list, array, or dictionary. It is used to automate repetitive tasks, such as processing data from a list or performing the same operation on each item in a collection. For Each Activity
  • 24.
    24 For Each Activity collection,list, array, or dictionary
  • 25.
    25 Break Activity The "Break"activity in UiPath is used to interrupt the execution of a loop and skip the remaining iterations.
  • 26.
    26 7. Learning Resources 1.https://docs.uipath.com/studio/docs/managing-variables 2. https://docs.uipath.com/studio/docs/the-variables-panel 3. https://docs.uipath.com/studio/docs/types-of-variables 4. https://docs.uipath.com/studio/docs/managing-arguments 5. https://docs.uipath.com/studio/docs/the-arguments-panel 6. https://docs.uipath.com/studio/docs/using-arguments
  • 27.
    27 Academy • Get crowdsourcedsupport and share product feedback on UiPath Forum • Check the product documentation Forum Community Events • Connect with like-minded people and share best practices with the UiPath Community • Solve challenges in engaging hackathon competitions • Join meetups and conferences • Learn the skills of the future on UiPath Academy or through our Academic Alliance • Earn globally recognized credentials with UiPath Certifications Vibrant ecosystem of more than 2 million professionals and citizen developers learning, getting support, and succeeding together in their automation careers.
  • 28.