Iterator

Created by Reachware Support, Modified on Thu, 2 Apr at 3:02 PM by Reachware Support

Iterator splits arrays into individual items, allowing you to process each one separately. Essential when you receive multiple records and need to handle each individually.

How to Add an Iterator

1

Click the Logic Processor icon between operations

2

Select Iterator

3

Configure settings

4

Click OK. The iterator has been created successfully.

Configuration

FieldDescription
Iterator NameName for this step
Source ModuleOperation with the array data
ArraySpecific array field to loop through

How It Works

Before Iterator

Single object with array:

{
"items": [
{"product": "Laptop", "price": 1000},
{"product": "Mouse", "price": 25},
{"product": "Keyboard", "price": 75}
]
}

After Iterator

Three separate objects:

Loop 1:
{"product": "Laptop", "price": 1000}
Loop 2:
{"product": "Mouse", "price": 25}
Loop 3:
{"product": "Keyboard", "price": 75}

Each object processes individually through next steps.


Related Articles

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article