Activities
latest
false
Banner background image
Workflow Activities
Last updated Apr 1, 2024

For Each Row in Data Table

UiPath.Core.Activities.ForEachRow

Description

Executes an action once for each row in a specified DataTable variable.

Project compatibility

Windows - Legacy | Windows | Cross-platform

Cross-platform configuration

  • DataTable - The DataTable variable for which an action is to be executed once for each row.
  • Item - The name used to reference each row in the contained activities.
  • Body - Activities to be executed for each row are placed here.

Windows - Legacy, Windows configuration

Designer panel
  • For Each - The name used to reference each row in the contained activities.
Properties panel
Common
  • DisplayName - The display name of the activity.
Input
  • Condition - This condition applies to the entire loop. If set to False, the body of the activity does not execute.

  • DataTable - The DataTable variable for which an action is to be executed once for each row.
  • MaxIterations - Input the number of times the loop should execute.

Misc
  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Output

  • Index - A zero-based index that specifies what element of the current collection is being iterated, stored in an Int32 variable.

Example of using the For Each Row in Data Table activity

Here you can see how the For Each Row activity is used in an example that incorporates multiple activities.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.