Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
in RPA by (5.3k points)

in UiPath RPA, how can I create a collection variable with different datatypes? For example, a collection of strings, numbers, booleans or even arrays or lists. Tried to look in System.Collections.Generic, but couldn't find the relevant one.

1 Answer

0 votes
by (9.5k points)

you can try to Create a new variable. Select System.Collections.Generic.List<T> for the type, then select your custom class. Here's a collection custom objects.

list of excel cells

Alternatively, use an Array<T>, and then pick your custom class. The following image shows a string array:

string array

Browse Categories