Saving in variable


i have a for each loop that return data for each iteration i need to save data of each iteration without overwriting the last iteration can’t use assign activity in the loop because it overwrite the last data

Thank you in adavance

Hi @madhavraichur25

Without using for each row in data table you can use below query

MyData = String.Join(",", dt.AsEnumerable().Select(Function(row) row("Column1").ToString()))

Regards,

In assign activity also
If you need to append tha data you can assign like a = a+current row value

like this it will not overwrite the complete value @madhavraichur25