0% found this document useful (0 votes)
0 views7 pages

UiPath Variables Day2

UiPath variables are unique storage spaces for holding multiple data entries of the same type, essential for automation processes. They can be created through the Variables Panel, by right-clicking in an activity, or using keyboard shortcuts. Common data types include Generic Value, Text, Boolean, Number, Array, Date and Time, and DataTable, each serving specific purposes in automation tasks.

Uploaded by

saagargpcet001
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views7 pages

UiPath Variables Day2

UiPath variables are unique storage spaces for holding multiple data entries of the same type, essential for automation processes. They can be created through the Variables Panel, by right-clicking in an activity, or using keyboard shortcuts. Common data types include Generic Value, Text, Boolean, Number, Array, Date and Time, and DataTable, each serving specific purposes in automation tasks.

Uploaded by

saagargpcet001
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

UiPath variables:

Variables are storage spaces that can be used to


hold multiple data entries( values) of the same data type.
In Uipath Variables are used to store values that they can
use later or across their automation Process. All variables
are unique which means you cannot create two variables
of the same name.

How to Create Variables in UiPath Studio

You can create or declare a variable by following any one


of the below methods in your uipath studio:

1. From the Variables Panel

You can easily declare variables from the variable panel:

 Click on the Variable section.


 Now click an empty field to make a new variable in
your uipath studio.
Create Variables from Panel

2. By Right Click In the Input Field of an Activity


You can declare a variable directly within the activity in
uipath studio:

 Click an activity in which you want to create a


variable.
 Right-click and select “create a variable” to create a
variable and set its datatype, scope, and default
value.
Create Variables in Uipath Studio

3. By using a Keyword Shortcut

You can also create variables using keyboard shortcuts


such as Ctrl + K

 Click on the text field of any activity


 Then press Ctrl + K and now you can see “Set Var”
and type your variable name to set it as a variable.

Types of UiPath Variables

As now you have familiarised yourself with variables, now


we will go through UiPath Variable types of variables used
in UiPath for your automation process.
Data Types specify the type of data a variable can hold or
store, all variables defined must be assigned with one of
the data types.

Commonly used data types in UiPath are :

 Generic Value
 Text
 Boolean
 Number
 Array
 Date and Time
 Datatable

There are a lot of datatypes available apart from the


above and can be accessed by selecting “Browse for
Types” Option available.

Generic Value

Generic Variable is a data type available in only the


UiPath and is capable of storing any kind of data such as
text, numbers, arrays and dates.
Text

Text variable can store only sting data type in it, it can be
used to store text and alphanumeric.

Boolean

Boolean variable can store only two possible values, true


or false in it. They are very useful while making decisions
to control the flow.
Number

Number variable can store only int data type in it and are used to
store numeric values.

Array

Array variable type helps us in storing multiple values of


same type in one variable.
It allows us to create a array of strings , array of numbers
and so on.
Date and Time

Date and time variables allows us to store the


information of Dates and Times.
This can be helpful while working with date
manipulations.

DataTable

Datetable variables enables us to store the information


similar to a excel or database with data being arranged
as rows and columns.
The dataTables are widely used in many of the
automation processes as we deal with a lot of data
during the business automations.

You might also like