What is a GenericValue?

You are currently viewing What is a GenericValue?

The GenericValue variable is a UiPath specific variable type used for storing any data type including text, numbers, dates, and arrays.

The GenericValue variable automatically converts into the data type of whatever is stored in it. For example, if you place a String inside of a GenericValue variable, the variable converts into a string. It is important to use these variables carefully as the conversion may not always be the correct one for your automation.

The first element of any expression is used as a guideline for what operation UiPath performs. For example, when you try to add two genericValue variables (variable1 + variable2), if the first variable is defined as a String, UiPath will define the second variable as a String and concatenate the two (variable1variable2). If your first variable is defined as an Integer, UiPath will define the second variable as an Integer and will result in a sum of the two (variable3).