Data Looper

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

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.

2

Select Data Looper.

3

Configure settings.

4

Click Save.

Configuration

FieldDescriptionRequired
Data Looper NameName for this loopYes
TargetLast operation to include in loopYes
Repeat CountNumber of times to repeatConditional
Step ShiftIncrement after each iterationYes
Repeat ConditionWhen to continue loopingConditional

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 1: Data Looper
Step 2: Get Page Data
Step 3: Process Data
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

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