Aggregator

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

Aggregator combines multiple items from an Iterator into a single structured output.

What is Aggregator?

The Aggregator collects data and combines it:

  • Receives multiple items from Iterator
  • Combines them into one
  • Outputs as array
[Item 1, Item 2]
Process Items
Aggregator
[Combined Array]

How to Add an Aggregator

1

Click the Logic Processor icon after your Iterator steps.

2

Select Aggregator from the list.

3

Configure settings.

4

Click Save.

Configuration

Basic Settings

FieldDescription
Aggregator NameName for this aggregator
Source ModuleWhere data comes from (usually Iterator)
Aggregator TypeArray or JSON

Aggregator Types

TypeOutput
Array AggregatorOutputs standard array format: [...]
JSON AggregatorOutputs JSON string

Array Aggregator: Two Modes

Simple Mode

Quick setup for basic arrays. (Build Custom Schema: OFF)

  • Array Type: Select type (String, Integer, Object, etc.).
  • Value: Enter key from the prev steps to aggregate (e.g., {{quantity}}).
Single Field Trace
Input 1
10
Input 2
20
Input 3
30
Output
[10,20,30]


Optional Features:

Grouping

Grouping By field organizes data into groups.

  • Leave empty: All items in one array
  • Enter key: Group by that field (e.g., {{branch}})
Example: Grouping By: {{branch}}

Output:
{
"Riyadh": [items from Riyadh],
"Jeddah": [items from Jeddah]
}
Stop on Empty

Checkbox: Stop processing after an empty aggregation.

Enable to stop flow if no data is aggregated

Advanced Mode (Schema Builder)

For complex objects with multiple fields. (Build Custom Schema: ON)

Toggle Build Custom Schema ON to open Schema Builder and build a custom structured schema.

Step 1
Click + Add Item
Step 2
Enter Name
Step 3
Select Type (String, Integer, Object)

Mapping Data

Mapping Data means assigning values to destination fields either dynamically (from source data) or statically (manual input). While creating or building a custom schema, the user can define the settings of each key field, including how it handles values such as empty or missing data. 

For more details, go to Mapping →


Nested Objects

For nested structures:

  • Add item and set Type to Object
  • Click to expand
  • Add sub-items inside

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