How to combine multiple outputs from multiple operations into single array of “Collection”?

Hi,

I want to combine multiple outputs from multiple operations into single “items” array of “Collection”.
There is a screenshot of the outcome from chatGPT.

  1. There is a screenshot how an array looks right now:

  1. There is a screenshot of example how I would like an array to look like:

How I can achieve that?

I can transform JSON string to “Collection” with “Parse JSON” module.
But how to push each “Collection” to the same array?
There is an example of inputs and outputs after iterating through each JSON string:

Many thanks in advance

Welcome to the Make community!

Aggregators

Every result (item/record) from your Parse JSON 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.

There are other types of aggregator modules, click the below links to find out more:

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

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

Hi,

Thank you for your kind and detailed explanation.
However, I cannot achieve desired result with Array aggregator.
Please find a screenshot:


Array aggregator returned 2 separate arrays, but I need to combine results from chatGPT into 1 array.
Do you have any idea how to achieve that?

Thank you in advance

Set your Aggregator’s Source Module field to your trigger module.

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

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

1 Like

What sily mistake of mine.
Thanks Sam.