Data Types

What are Data Types?

A Data Type (also referred to as a Variable Type in UiPath) is a way of classifying a particular piece of data into a specific category. Once a data type is set, it can be used to determine how that piece of data can be used. 

For example a String is a data type used to classify strings of text (“pie”,”cake”,etc.) and an Integer is a data type used to classify whole numbers (1,3,5, etc.).

When creating variables in UiPath, you need to select a specific data type which determines the type of data that the variable can store. Variables can store only one selected data type. For example, you can’t store a Boolean into an Integer Variable. To learn more about variables, click here.

In addition to Data Types, there are also Data Collections which can store multiple instances of the same data type. For Example, if you want to keep track of 5 whole numbers, you can use a Data Collection to store them as a single object/variable.

Data Types can be split into three main categories:

Standard Data Types

The data types listed below are the most common data types you will encounter and use when creating automations in UiPath. These data types cover everything you would need to start developing. 

  • Boolean

    A Boolean is a binary data type containing either the value of True or False

  • Integer (Int32)

    A Whole Number. Integers can be positive, negative, or even zero.

  • String

    A finite sequence of text characters.

  • Object

    An object is a variable type that can hold any data type

  • GenericValue (UIPath Specific)

    A UiPath specific variable type used for storing any data type including text, numbers, and dates.

  • DateTime

    An instance in time, typically expressed as a date and the time of day.

Specific Data Types

These are data types that are used only for specific applications or purposes when developing an automation. These are less commonly used than the Standard Data types, but are still just as useful when the need arises.

  • Exception

    Represents errors that occur during the execution of an automation.

  • MailMessage

    Represents an email message.

  • Math

    Provides constants and static methods for common mathematical functions.

Data Collections

Data collections are a collection of objects of the same data type. These help with passing larger sets of data through automations and also have more advanced uses to help organize and streamline automations. 

  • Array

    A fixed size and ordered collection of elements with the same data type.

  • List

    An ordered collection of elements with the same data type and no fixed size.

  • Dictionary

    A collection of unordered values access by a key rather than an index.

  • DataTable

    Represents one table (collection of rows and columns) of data.