Fetch last record insted of first from datatable

Hi friends,
I have to extract data from my input file and converted into datatable. Now i have to fetch one by one account number and process it.
Here if i display datatable then it printed correctly but when i am processing account number then it take last account number.
Here it should take first account number but it takes last.
Kindly help me over this.

Regards

@Rup_1

I hope your input is dataTable here. Then use For Each Row activity to iterate that DataTable.

ForEach row in dataTableName
row(“AccountNumber”).Tostring

It will read one by one account number from dataTable.

1 Like

Yes i am using for each row activity to iterate account number, if i put msg box then it shows first record but while processing it takes last record.

@Rup_1

It won’t. Could you please give it a try now.