Hi.
I built a scenario where I use
- Module 1 : HTTP GET to retrieve news from NewsAPI for English articles - output is Bundle 1 = one Collection of arrays (= articles in English with Title, author, content, URL, etc…)
- Module 2: HTTP GET to retrieve news from NewsAPI for French articles - output is Bundle 2 = one Collection of arrays (=articles in French with Title, author, content, URL, etc…)
- Module 3 : Array aggregator to try tu merge Bundle 1 and Bundle 2 as they have same structure
My issue is the following:
- in the Array aggregator , I do see the 2 modules HTTP and I select for both of them the Data to be aggregated (I dont need headers).
- when I save the module and reopen it, only one data field stays selected (the one corresponding to the Source Module selected)- the other one is deselected .
- therefore when I run the scenario, the aggregator module only provides me with one of the Bundle and not both of them.
Can somebody help me ?
Welcome to the Make community!
You simply need one Aggregator per group of bundles.
So HTTP > Aggregator > HTTP > Aggregator
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Thanks will try and let you know
hi it does not work.
in the end I want to have one array with all the articles from both HTTP Module.
In the array aggregator, I can only select for the aggregated fields the first level (ie Headers, Data, cookies headers). this is may be why it does not work , as Data is the right level I want to aggregate. I want to aggregate the Articles (which is an Array).
do you think it comes from this Data / articles structure ?
do you see other solutions ? how can I for instance extract from the HTTP bundle only the Articles Array ? and then I can try to merge the 2 Bundles array Articles ?
In fact I use Set Variable Module with a merge function of the 2 arrays
If you need further assistance, please provide the following:
1. Relevant Screenshots
Please share screenshots of your scenario, any error messages, relevant module fields, and filters in question? It would really help other community members to see what you’re looking at.
You can upload images here using the Upload icon in the text editor:
2. Scenario Blueprint
Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.
3. Output Bundles of Modules
Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
A. Upload as Text File
Save each bundle contents in your text editor as a bundle.txt
file, and upload it here into this discussion thread.
B. Insert as Formatted Code Block
If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:
-
Method 1: Type code block manually
Add three backticks ```
before and after the content/bundle, like this:
```
content goes here
```
-
Method 2. Highlight and click the format button in the editor
Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.
Following these steps will allow others to assist you here. Thanks!