Make Array aggregator: combine records into one list
In Make Free how do I get two records to be grouped into one array? Source, fields, expand both outputs, and see what's still available later.

An array is a collection of values. In this Make Free exercise, we use Array aggregator to merge two fake order records into a single array of values, representing the item name and quantity.
Before you start
You can create your make free account (opens in a new tab) or log in. No need to connect another app. Leave practice scenario Inactive Choose Run once.
1. Create the two source records
In Scenarios. Click "Create scenario". At the top left, name this scenario Array regrouping practice. Insert JSON > Parse JSON. In the data structure, put nothing. Paste the sample two record json you get (item, quantity). into JSON string. Save module. Save scenario. Only warning is unused output. Click Save anyway for unused output. Click Run once. (click Run anyway for unused output for the same warning.) Check JSON source result. Make sure you have two bundles.
[{"item":"Notebook","quantity":2},{"item":"Pencil","quantity":1}]
You already have this top-level JSON array providing separate bundles. You don't need an Iterator for this data source. If you have a nested list inside a field, that's a different case. Read Iterator guide.
2. Choose what to keep in the list
- Collapse result panel and on the plus sign next to JSON select Flow Control > Array aggregator
- Change Source Module to JSON - Parse JSON [1]
- Leave Target module as Custom
- In Aggregated fields choose item and quantity
- Save module and scenario
Watch out
Add all the required fields to the next step in Aggregated fields. You will see the list of fields you've specified as the output of aggregator, which means, you won't have access to the source fields (previous fields) automatically. Check the actual array before you map the destination.
3. Expand both output items
- Press the Run once button. (If you get a warning about unused output, handle it like above)
- In the bubble that appears, above the Array aggregator,
- Go to the Output. Open Bundle 1. Then open the Array. Open items 1 and 2
- Verify that in item 1 you have Notebook, quantity 2 and in item 2 you have Pencil, quantity 1.
I have a single output bundle, with a two-element array.
The following module which needs the entire list requires the Array token of the aggregator, rather than a single element in the array.
If the list is empty or a field is missing
Check the source, what are its actual number of bundles? Try the source with sample data, before opening the aggregator again. Check the source you selected, Aggregated fields.
When the filter drops all records, it still creates empty array as a default. Next module can work. For this possibility to be blocked, open Array aggregator. Enable the Show advanced settings. Set Yes to Stop processing after an empty aggregation. Save module and scenario.
Try this test scenario and leave an empty case before you bind to action:
- Put a filter between JSON and Array aggregator. Select Text operators: Equal to First field: 1 Second field: 0 Set the source of aggregator JSON - Parse JSON [1] Don't set anything in Group by
- Stop processing after empty aggregation leave unchecked Run it and check your aggregator. You will get the only one output bundle of total. It will be empty Array. Check it. Now set it to be checked. Save and run again. It will stop before the next module
- Now set your second field in filter to be 1. Run again. Stop processing still checked Expand your output array. Do you see that Notebook,2 and Pencil,1 are there.
Make a list one time. Spreadsheets are there. Have a look at Free-plan limits before set it up in Make to run in plan.
Sources: Make aggregator documentation (opens in a new tab); Make JSON documentation (opens in a new tab). Screenshots show fictional practice data.
Share this post
From holdmytwist.com/blog/make-array-aggregator-records/


