Difference between for each row & for each item

Could you please confirm us main difference between for each row & for each item?

@kumarshantanu

For Each Row - It will use to iterate rows in Datatable.

For Each loop - It will use to iterate items in array.

to expand on @lakshman’s explanation:

For each activity - this can iterate through ANY type of collection. You specify what variable type by changing the TypeArgument property.

For each row activity - this can ONLY iterate through a datatable (with a TypeArgument of DataRow).

The ‘row’ poriton and the ‘item’ portion of for each row and for each item is the variable name you are giving the row/object within the For Each statement. You can change this name to anything you would like :slight_smile:

1 Like

Thank you

1 Like

Understood, thanks for you help.