Array in Add to collection

Hello friends,
@rkelchuri, @Ninett_Panfir, @Rammohan91, @balupad14, @Florent_Salendres, @vvaidya, @Palaniyappan, @ClaytonM, @vvaidya, @lakshman, @Dave,

I need to pass in the “Add to collection” activity an array, which is a row of a Datatable.
Which kind of item should I pass?
Thank you,
cami

1 Like

Fine
may i know to which kind of variable we are going to pass that array of datarow
kindly elaborate the scenario please
Cheers @CamiCat

Since you are using a DataRow, you might try using a DataTable instead of a collection. Then, use Add Data Row to that data table.

To create a clone of the datatable with same columns just use .Clone, and add to that:
dtNew = dt1.Clone

Then, Add Data Row to dtNew.

I think that would work, anyway.

Regards.

1 Like