Add to collection-string variable type

Hi ,

What is variable type for add to collection .
Item is string variable
Type of argument string
Can you plz suggest what would be the variable type and default value for collection output.

Thanks

Hi,

Can you try to press Crtrl+K in collection property of the activity, and input new variable name?
UiPath will automatically create proper type variable.

Regards,

With the help of ctrl+k it will create new variable right?
I want variable type for string in collection
System.collections.generic.icollection<system.string>and default new collection (of string)
Is the one I am using. But I am not getting the proper out

Hi,

Do you have any error? In this case, we can also use List<String> for example. Can you try this?

Regards,

Hi ,
Yeah I tried with list of string .now it’s working thanks for the Idea

1 Like

Create List Variable In Variable pane say Say ListA and browse for type
image

Then whenever you are using Add to collection give this ListA

image

Hope it helps

Regards,
Pratham.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.