I have an API request that outputs in JSON format using a HTTP module. It returns an array of items (items ). In history mode I can clearly see all the items but in scenario mode it only allows me to see (and map) the last item in the list.
How are you “mapping” the array? You might need an array “Iterator” module to create bundles from each array item, or you might want to combine all the items into a primitive variable type like a comma-separated string.
1. Screenshots of module fields and filters
Please share screenshots of 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 mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.
(Note: Exporting your scenario will not include private information or keys to your connections)
Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a bundle.json file, and upload it here into this discussion thread.
Providing the 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!
Arrays in Make.com only shows first item and provide access to that item only. To deal with this, you need to use iterator. By adding iterator, you will be able to access each item as “value”.
That’s just sample preview data from of the iterated items from the array. You have to run the scenario to see the bundles being passed on to subsequent modules after this Iterator. Each iteration will have different values based on the current item.
How can I map multiple different items to the next modules. For example; imagine I want to map items 2,3 & 6 to the next module. How do I do that when I can only map this sample data?
Can you give me a few more details? Is filter a separate module because I am attaching my iterator module in the screenshot below and it only has one field?
Thanks but this doesnt seem to be working, I have added 2 iterators, both have filters, filtering to a different bundle number. 1 and 2 respectively, but both results in the scenario mode are the same.
I will attach screenshots of my filters. So you can see, but they return the same value (the last item in the array(like always))
Because map function also gives array, that’s why you can see only one item here also.
Now you can iterate through this array and can map the “value” in your next module.
Remember, During mappings, you will always see only one item whether its an array or its from iterator. but you will get all the output in your results. It will go through every value one by one.