Gmail Attachment to HTTP Request

What are you trying to achieve?

I want to receive gmail multiple attachment into http request, all working fine but i am only receiving one attachment even email contain multiple attachment,

not sure where is the issue, your help will help me to get over this

thanks

Steps taken so far

i have already created scenario gmail watch email to http, all good just this gmail multiple attachment issue

Screenshots: scenario setup, module configuration, errors

Hey Joseph,

you are mapping only the first item from an array of attachments. If you need to process the attachments one at a time, then you need an iterator module first to go through the array. And if you need to process them in bulk, then you need to restructure your HTTP call so it receives an array of items and not a single item.

Thank you for your response stoyan_Vatov , i want it in bulk, if you suggest what i need to change in HTTP structure it will help for me, bcoz from make http request input i saw its only sending first attachment

i tried array Aggregate before http request but no luck

Thanks

At the moment you are mapping a single File item, you will need to toggle the Map button next to Fields and map the entire array there. But first you will need to restructure your incoming data to match what the API is expecting.

Welcome to the Make community!

Combining Bundles Using Aggregators

Every result (item/record) from trigger/iterator/list/search/match 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.

You can find out more about the other types of aggregator modules here:

Mapping a Specific Structure Into a Complex Field

The Array Aggregator module is very powerful because it allows you to build a complex array of collections for a later module’s field to map multiple items (collections) to it.

This is done using the “Target structure type” field in an Array Aggregator module.

Here is an example:

As you can see, the “Map” toggle on complex fields are used when you have an array. You can easily build an array variable to map to a future module’s field, by using an Array Aggregator module and select the “Target Structure Type” as the future module’s field you have mapped the array into.

Example

Here is an example of how your scenario could look:
Screenshot_2025-04-03_130404

This is just an example. Your final solution may or may not look like this depending on your requirements and actual input data.

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.