Array Aggregator

The Array Aggregator collects outputs from multiple loop iterations into a single array. Use it after a For Each loop when you need all results as one combined list.

Type: ARRAY_AGGREGATOR / ARRAY_AGGREGATOR_V2 Credits: None

The problem it solves

A For Each loop processes items one at a time. Each iteration produces output, but only the LAST iteration's output is available after the loop. If you need ALL outputs:

Without Array Aggregator:

For Each (10 items) → HTTP Request → Loop End
→ Only the 10th HTTP response is available

With Array Aggregator:

For Each (10 items) → HTTP Request → Array Aggregator → Loop End
→ All 10 HTTP responses available as an array

Configuration

FieldDescription
SourceWhich node's output to collect (typically the action inside the loop)
FieldWhich specific field from the output to aggregate

How it works

  1. Place it inside a For Each (or Repeat) loop, after the action node
  2. On each iteration, it collects the specified output
  3. After the loop ends, the aggregated array is available as one variable
  4. Downstream nodes can reference the full array

Output

VariableWhat it contains
{{aggregator.result}}Array of all collected values
{{aggregator.result[0]}}First item
{{aggregator.result.length}}Number of items collected

Example: Batch API calls

Find All Records (100 customers) →
For Each →
  HTTP Request (GET /api/customer/{{item.id}}) →
  Array Aggregator (collect response.data) →
Loop End →
Transformer (format all results) → Send Email (report with all data)

Example: Collect enrichment results

For Each (lead list) →
  Person Enrichment ({{item.name}}, {{item.domain}}) →
  Array Aggregator (collect enriched data) →
Loop End →
Create Records (bulk insert all enriched leads)
Tip

Always use Array Aggregator when you need to process loop results after the loop. Without it, you lose all but the last iteration's data.