Unable to Attach Google Drive File to Gmail

Hi everyone,

I’m trying to send a Gmail email with a PDF file downloaded from Google Drive using Make (free plan).

  • The Google Drive > Download a File module works perfectly.
    The file downloads fine, the output includes Name, Data (binary), and all file info.
    No error here; the binary data is available and correct (confirmed in the output).

The problem is in the next step with Gmail:

  • In Gmail > Send an Email, whenever I try to attach the file (mapping “Name” and “Data” from the Drive module), I get:
    BundleValidationError: Array of objects expected in parameter 'attachments'

What I’ve tried:

  • Mapped “Name” and “Data” directly in Attachments (Map mode).

  • Tried using “Set variable” to build a proper object/array, but there is no “Add item” or plus button – only manual writing.

  • “Array aggregator” module does not appear for my scenario.

  • Searched community/docs, but couldn’t find a solution that works for one file, single flow, free plan.

My question:
Is there any way (with Make Free) to correctly format the Google Drive file as a Gmail attachment?
How do I create the required array/object for Gmail’s Attachments field, if there’s no array/object builder visible in Set variable?

Thanks for any help!

Welcome to the Make community!

We’d love to help, however, you have not provided sufficient information to demonstrate the problem that would allow us to reproduce the scenario and any issue/s and/or error/s.

To allow others to assist you with your scenario, please provide the following:

1. All Relevant Screenshots

We need to see what you’re working with to give you the best advice. Screenshots are extremely important because Make is a visual editor — a picture provides us with more context.

It would help us identify the issue by having screenshots of:

  • the full scenario,
  • any error messages,
  • individual module fields,
  • relevant filter settings (conditions), and
  • each module’s output bundles
  • any external services (spreadsheet headers, sample data, regex101.com, etc.)

You can upload images here using the Upload icon in the text editor:

We would appreciate it if you could upload screenshots here instead of linking to them outside of the forum. This allows us to zoom in on the image when clicked, and avoid tracking cookies from third-party websites.

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

Sharing these details will make it easier for others to assist you.

Thanks, this is my scenario:

This is the error:

This is the blue print

Presups EC + FUs.blueprint.json (49.6 KB)

I hope someone can help me! :folded_hands:

Thanks

Turn off the Map toggle and put name/data into the two separate fields.

Hope this helps! Let me know if there are any further questions or issues.

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

Thanks @samliew, I really appreciate your help.

No problem, glad I could help you with “Unable to Attach Google Drive File to Gmail

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help as newer questions are displayed higher on the forum’s “new” page.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

Hope this helps! Let me know if there are any further questions or issues.

@samliew