Loop

The Loop Step processes each item in an array/collection individually.

When to Use

  • Process lists or arrays
  • Batch process records
  • Make multiple API calls with varying data
  • Transform data collections

Settings

Basic Settings

  • Description: Name your loop
  • Array to loop: JSONPath to the array (e.g., $.customers)
  • Filter: Limit to certain items (first, last, range, skip, etc.)
  • Chunk Size: Split into batches
  • Include surrounding context: Inherit previous step data
  • Error Flow: Enable error handling
  • Preview output: Choose between all or first item preview

Inside the Loop

  • Add steps via “+” to run for each item
  • Current item is accessible via @ (e.g., @.name)

Error Flow

  • Add error-handling steps if any iteration fails

Tips

Each iteration’s context is the current item (@)

Use filters to target specific items

Enable error flow for robust handling

Use a Loop Breaker to exit early if needed

Use chunking for large arrays