Fill List Variable with ForEachRow

Hello, everybody,

I have a List Variable of String.
I want to fill it with values using the activity ForEachRow.

The screenshot shows my procedure. Where is my error?


Kindly take the cursor to that blue mark inside the THEN part ASSIGN activity
so that we could be able to fix this issue
Cheers @Kytyzow

The list object is an object whose memory space changes dynamically. therefore, you cannot add new objects by Assign Activity. With Assign Activity you can only replace an existing item. You can use Add To Collection Activity to add a new item to the list. But be sure to initialize the list before using it, Like this =>

MyStringList=new List(of String)

1 Like

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