Data Looper repeats operations based on a count or condition, enabling pagination and repeated API calls. Essential for fetching large datasets page by page or processing data in batches. Use Data Looper to:
- Fetch paginated API data (page 1, 2, 3...)
- Process data in batches
- Loop steps until a condition met
How to Add Data Looper?
1
Click the Logic Processor icon between operations.
Configuration
| Field | Description | Required |
|---|
| Data Looper Name | Name for this loop | Yes |
| Target | Last operation to include in loop | Yes |
| Repeat Count | Number of times to repeat | Conditional |
| Step Shift | Increment after each iteration | Yes |
| Repeat Condition | When to continue looping | Conditional |
Important: You must provide either a Repeat Count OR a Repeat Condition (or both).
Target Operation
The Target defines the end of the loop.
Loop Scope↪Step 4: Store Results
← Target Hint: The loop repeats all steps between the Data Looper and the selected target (in this case, Steps 2, 3, and 4).
Repeat Count
Number of times to run the loop.
Options:
- Fixed number: 10
- Mapped value: {{total_pages}}
- Handler result: ceil({{total_records}} / 100)
Example: Repeat Count: 5
// Loop runs exactly 5 times, then stops.
Step Shift
How much to increment the loop index after each iteration.
Common values:
- 1 — Increment by 1 (page 1, 2, 3...)
- 10 — Increment by 10 (0, 10, 20...)
- 100 — Increment by 100 (for offset-based pagination)
Example: Step Shift: 1
// Loop index: 0, 1, 2, 3, 4...
Hint: Step shift defines how much the loop index increases after each iteration.
Repeat Condition
Conditions that determine if the loop should continue.
The loop continues while the condition is TRUE.
Condition Types
Text Operators:- Equal, Not Equal to
- Contain, Does Not Contain
- Start With, Does Not Start With
- End With, Does Not End With
Numeric Operators:- Equal, Not Equal to
- Greater than, Greater than or equal to
- Less than, Less than or equal to
Basic & Boolean:- Is Empty, Is not Empty
- Equal (Boolean)
- Not Equal to (Boolean)
Multiple Conditions
Combine conditions with AND/OR logic.
AND Example{{has_more_pages}} = true AND {{current_page}} < 10
Both must be true to continue
OR Example{{status}} = "pending" OR {{retry_count}} < 5
At least one must be true to continue
Related Articles