How to pass all Bundles from an iterator to a JSON module?

Hello. I hope someone can help. If you need more information let me know.
Process description: get all the products from the order (article and quantity) and pass them to the http request module.



Problem: the iterator splits the number of items into batches. They come in the wrong Json structure, which should be sent to the http request. Therefore, I use Create Json to create a new structure.

The problem is that the output of the iterator is 3 bundels. and only 1 goes to Create Json. How to make sure that all bundels from the iterator are passed to Create Json?

Bundles content from iterator:
[
{
“id”: 17867,
“sku”: “134000001”,
“variation_id”: null,
“publication_source_uuid”: null,
“name”: “Блок управління KME Nevo SUN 4цил (ЕБУ)”,
“upsale”: false,
“price”: 2312.76,
“discount_amount”: 0,
“discount_percent”: 0,
“individual_discount”: 0,
“loyalty_discount”: 0,
“total_discount”: 0,
“purchased_price”: 0,
“price_sold”: 2312.76,
“quantity”: 1,
“unit_type”: null,
“stock_status”: “reserved”,
“picture”: {
“thumbnail”: “https://gazmax.api.keycrm.app/file-storage/remote?url=https%3A%2F%2Fgazmax.com.ua%2Fcontent%2Fimages%2F37%2Fp1481985834-blok-upravleniya-kme-58876081551731_%2B44f23de5c2.jpg
},
“comment”: null,
“properties”: ,
“product_status_id”: null,
“created_at”: “2025-05-01T21:02:44.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”,
“shipment_type”: “warehouse”,
“offer”: {
“id”: 441,
“product_id”: 406,
“sku”: “134000001”,
“barcode”: null,
“thumbnail_url”: null,
“price”: 2312.76,
“purchased_price”: 0,
“quantity”: 0,
“in_reserve”: 2,
“weight”: null,
“length”: null,
“height”: null,
“width”: null,
“properties”: ,
“is_default”: false,
“is_archived”: false,
“created_at”: “2025-01-31T16:42:31.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”
},
“warehouse”: {
“id”: 1,
“name”: “Головний”,
“description”: null,
“is_active”: true,
“is_default”: true,
“address_id”: null,
“created_at”: “2025-01-08T16:52:28.000000Z”,
“updated_at”: “2025-01-08T17:38:56.000000Z”,
“deleted_at”: null
},
IMTINDEX”: 1,
IMTLENGTH”: 3
},
{
“id”: 17868,
“sku”: “W1Y-07975_1”,
“variation_id”: null,
“publication_source_uuid”: null,
“name”: “Перемикач Stag GoFast LED-200”,
“upsale”: false,
“price”: 250,
“discount_amount”: 0,
“discount_percent”: 0,
“individual_discount”: 0,
“loyalty_discount”: 0,
“total_discount”: 0,
“purchased_price”: 250,
“price_sold”: 250,
“quantity”: 2,
“unit_type”: null,
“stock_status”: “reserved”,
“picture”: {
“thumbnail”: “https://gazmax.api.keycrm.app/file-storage/remote?url=https%3A%2F%2Fgazmax.com.ua%2Fcontent%2Fimages%2F2%2Fswitch_stag200-87578519034509_%2B5043d47718.png
},
“comment”: null,
“properties”: ,
“product_status_id”: null,
“created_at”: “2025-05-01T21:02:44.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”,
“shipment_type”: “warehouse”,
“offer”: {
“id”: 446,
“product_id”: 411,
“sku”: “W1Y-07975_1”,
“barcode”: null,
“thumbnail_url”: null,
“price”: 250,
“purchased_price”: 250,
“quantity”: -40,
“in_reserve”: 4,
“weight”: null,
“length”: null,
“height”: null,
“width”: null,
“properties”: ,
“is_default”: false,
“is_archived”: false,
“created_at”: “2025-01-31T16:42:31.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”
},
“warehouse”: {
“id”: 1,
“name”: “Головний”,
“description”: null,
“is_active”: true,
“is_default”: true,
“address_id”: null,
“created_at”: “2025-01-08T16:52:28.000000Z”,
“updated_at”: “2025-01-08T17:38:56.000000Z”,
“deleted_at”: null
},
IMTINDEX”: 2,
IMTLENGTH”: 3
},
{
“id”: 17869,
“sku”: “GM-677”,
“variation_id”: null,
“publication_source_uuid”: null,
“name”: “Фітинг штуцер для трубки ПВХ тип FARO D6 прямий”,
“upsale”: false,
“price”: 48,
“discount_amount”: 0,
“discount_percent”: 0,
“individual_discount”: 0,
“loyalty_discount”: 0,
“total_discount”: 0,
“purchased_price”: 47.74,
“price_sold”: 48,
“quantity”: 3,
“unit_type”: null,
“stock_status”: “reserved”,
“picture”: {
“thumbnail”: “https://gazmax.api.keycrm.app/file-storage/remote?url=https%3A%2F%2Fgazmax.com.ua%2Fcontent%2Fimages%2F20%2F52329125527180_%2B0a57134fd5.png
},
“comment”: null,
“properties”: ,
“product_status_id”: null,
“created_at”: “2025-05-01T21:02:44.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”,
“shipment_type”: “warehouse”,
“offer”: {
“id”: 449,
“product_id”: 414,
“sku”: “GM-677”,
“barcode”: null,
“thumbnail_url”: null,
“price”: 48,
“purchased_price”: 47.74,
“quantity”: -58,
“in_reserve”: 6,
“weight”: null,
“length”: null,
“height”: null,
“width”: null,
“properties”: ,
“is_default”: false,
“is_archived”: false,
“created_at”: “2025-01-31T16:42:31.000000Z”,
“updated_at”: “2025-05-01T21:02:44.000000Z”
},
“warehouse”: {
“id”: 1,
“name”: “Головний”,
“description”: null,
“is_active”: true,
“is_default”: true,
“address_id”: null,
“created_at”: “2025-01-08T16:52:28.000000Z”,
“updated_at”: “2025-01-08T17:38:56.000000Z”,
“deleted_at”: null
},
IMTINDEX”: 3,
IMTLENGTH”: 3
}
]

Input modele Json
[
{
“quantity”: 1,
“product_code”: “134000001”
}
]

To do this, you can try using the JSON “Aggregate to JSON” module.

For more information, see https://www.make.com/en/integrations/json, and https://www.make.com/en/help/app/json in the help centre.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

1 Like

Thank you, this is exactly what I was looking for. Everything worked :slightly_smiling_face:
@samliew

Combining Bundles Using Aggregators

Every result (item/record) from trigger/iterator/list/search/match modules will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.

Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module. The next popular aggregator is the Text Aggregator which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.

You can find out more about the other types of aggregator modules here:

Question: Which is the best aggregator do you think you’ll need for your use-case?

Mapping a Specific Structure Into a Complex Field

If you have an array of collections, in programming terms, this is called an array of objects, or an array with non-primitive data types (“complex”).

The Array Aggregator module is very powerful because it allows you to build a new complex array of collections that matches a later module’s field to map multiple items (collections) to it. Such fields initially would allow you to manually add items, but you can toggle the “Map” switch to the “on” state and map a whole array into a single field.

This is done by selecting the “Target structure type” in an Array Aggregator module.

As you can see from the above example, the “Map” toggle on complex fields are used when you have an array variable (like from an array aggregator). Other combinations of modules may also allow you to generate an array that matches a future field’s array structure, like “Aggregate to JSON + Parse JSON”, or “Create JSON + Parse JSON”, but this is an advanced topic.

Question: Are you mapping your array into a field that accepts more than one item/collection?

For more information, see “Mapping with arrays” in the Help Centre. You should also do the Make Academy, which also covers the use of Iterators & Aggregators.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

Thank you for your questions and clarifications.
Yes, I need to pass an array to the body of an http request where there will be more than one collection.
There is no Media items in my aggregator module.
After aggregate to json, I added parse json, and it is already in the aggregator.
Everything seems to be working as it should now