How to loop through array of datatables and get values of each rows

Hi
I am new with uipath. I have an array of datatables. I want to loop through the datatables and perform some activity with the row items. How do i get the value of the row in the for each loop?

Hi there,

You need a For Each (NOT For Each Row) to iterate each item in your array of DataTables (Remember to change the TypeArgument to System.Data.DataTable).

Then, perform a For Each Row for each item of your array.

Get the information with row(“You column name”) or row(You column Index).

1 Like

if there are two tables inside the for each datatable array do i need to run for each row 2 times?

Yes the bot will runs two times in the loop.

Regards

Nived N

Happy Automation