How to add value to List<String>?

Hi All,

I want to add a string value to my list. My list is type of List . I have two get text method. Their outputs are defined with the same variable.
How can I do that?

image

2 Likes

Hi
Welcome to uipath community
we can use ADD TO COLLECTIONS Method
where in the collection property mention the list variable name and in the item mention the value to be inserted

or

to insert directly if only two values
then in the assign activity be like this
TCNoList = New List(of string) from {yourvariable1, yourvariable2}

Cheers @Emre_Yarar

7 Likes

@Emre_Yarar,

Welcome to UiPath Community!.

Use Add to Collection Activity.

3 Likes

Can you give me an example?

1 Like

sure
listt.zip (9.6 KB)
here you go
Cheers @Emre_Yarar

8 Likes

thank you :slight_smile:

1 Like

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