Description

Executes an action for each of the rows in the specified data table.



Attributes

Misc

  • DataTable - The data table object for which the action would be executed for each of the rows.

  • DisplayName - Renames the activity.


Example

  1. Create a DataTable variable called dt.
  2. Add a Generate Data Table inside a Sequence, and in the DataTable field under Properties, add dt.
  3. In the ColumnSeparators field under Properties, write ";", and in the NewLineSeparator field, write "|".
  4. In the Input field, type "1; Nicole|2; John|3; Michael". This would be the sample values inside the data table.
  5. Add a For Each Row activity, and in the DataTable field, write dt.
  6. Create an OutArgument variable called rowItem.
  7. Add a Get Row Item activity inside the Body sequence, and in the Value field under Properties, add rowItem.
  8. In the Row field, add Row, and in the Column Index field, write 1
  9. Add a Write Line activity, and in the Text field, write rowItem:



The output should look like this in the Output panel: