Data from multiple bundles to unique multiple line CSV file

Hi everyone,

I’m trying to accomplish what I believe should be a straightforward task: generating a single CSV file from data spread across multiple bundles. However, I’m having trouble concatenating the information from these bundles into one cohesive CSV file.

I’ve experimented with various methods, including setting multiple variables, using the text aggregator, and the CSV creator module. While each of these methods works for creating a CSV file from a single line of data (resulting in one CSV per bundle), I need to consolidate all the data from “N” bundles into a single CSV file.

Could anyone provide guidance on how to achieve this? Any help would be greatly appreciated!

Thanks in advance!

Take a look at the CSV aggregator.

Every result (item/record) from a search/match 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. The next popular aggregator is the Text Aggregator which is very flexible and has applies to many use-cases.

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

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

3 Likes

Thank for your help!

Looking at other of your responses I found and solved part of the issue: How to combine bundles from multiple operations into one text string - #4 by samliew

I was using a set multiple variable module after the iterator that generates 5 bundles, this was just to organize the data coming from other iterator but if I put the text aggregator after that the bundles are not aggregated. Now it’s generating 2 bundles because of the first iterator, this is the scenario:

The first HTTP module is getting new Purchase Requests IDs and the second is getting the product list for each Purchase Request. Right now the text aggregator is doing the following:

What should I do to also combine the text of the two Purchase Requests in this example?

OK, made it! It was just select the first aggregator as source module for the text aggregator…

¯_(ツ)_/¯

Well… Now I better understand aggregators… Now will organize the data using a Advanced CSV aggregator.

2 Likes

Hey there @Osodarck :wave:

Congratulations on solving this! :tada:

Keep up the good work!

2 Likes