I have only used “For Each Excel Row” up until now. I am now filtering datatables, and thus need to use “For Each Datatable Row” I have several “Type Into” activities for each row in a datatable that are using specific cells in each row.
I tried using “CurrentRow.ByIndex(3)”, which is what worked in the “For Each Excel Row”, but its not working for the “For Each Datatable Row” activity.
You don’t need to specify the index. CurrentRow IS the row with its data. You just reference your column name ie CurrentRow(“SomeColumn”).ToString or by index of the column CurrentRow(2).ToString for the 3rd column (0 based index).
For future reference, if you do actually need the index for your process (for example, storing row indexes in an array for rows you want to do something with later), then you use the Index property. It will give you the index of CurrentRow.
Whatever INT variable you put in there, you just reference that variable inside the For Each Row’s code.