Executes the activity contained in its Body for each item in a specified Values collection. When adding a ForEach activity to the designer, we must set the type of the item for the Values Collection.
Most of the properties on this activity can be set using an expression. That is why when we set a string value, we must put that string value under "".
- Item The item of the specified Values collection.
- Values The activity's collection of inputs for the execution of the Body activity action.
- Body The ActivityAction to be executed for each item in the Values collection.
See General Properties.
See Out Error.
In this example, we use for each to display the values from 1 to 5 in the output panel.