Create a numbered array from multiple 'Data Store' search results

Hey, Make community!

I’m trying to turn these ‘Item IDs’ outputted from a ‘Data Store’ search into a comma-separated list.

For example here is the current output:

My desired output would be to combine these values into a numbered array like this:

The number of results from the search could vary each time the scenario is run, so I’m looking for a solution that will work with a varying number of ‘Item ID’ values.

Appreciate any support with this one in advance!

Welcome to the Make community!

Every result (item/record) from a search module will output a bundle. To “combine” them into a single structure, 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.