Main argument with list of values

I need a predefined list with report names, ex. [Report 1; Report 2; Report 3; Report 4] that will be an IN Argument in Main.xaml file. It’s similar to boolean type, but as used above there will be more options to select than True / False. Is this possible to do in UiPath? Or I should do just a string variable where the user can type anything?

Hi @Robert_Work

Could you please elaborate the issue.

Regards

Could you just create x number of string arguments? Or, if the number needs to be dynamic, perhaps you could ask the user to provide a string where the values are separated with a predetermined separator (semicolon, pipe, …)?

Create it as a String argument, enter it as a delimited list without spaces after the delimiter (ie Report 1;Report2;Report3) then in your code use String.Split to convert it to an array.