Iteration in Frends Processes
How to iterate using While, ForEach and Code Task shapes.
Prerequisites
Method 1: Using the ForEach Shape
Input Data
{
return new JArray(
new JObject { {"id", 1}, {"value", "First Item"} },
new JObject { {"id", 2}, {"value", "Second Item"} },
new JObject { {"id", 3}, {"value", "Third Item"} }
);
}
Configuring the ForEach Loop

Processing Each Item

Final Result

Method 2: Using the While Shape
Initializing the Loop
Configuring the While Loop

Loop Logic and Terminating the Loop

Final Result

Method 3: Using the Code Task
Input Data
Implementing the Loop in C#

Final Result

Last updated
Was this helpful?

