# Gmail attachments: Google Docs PDF from template and Airtable attachment fields

**URL:** <https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929>\
**Category:** Questions\
**Created:** [April 26, 2022, 4:38pm UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929 "2022-04-26T16:38:23Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zbulo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/zbulo/32/603_2.png) [@Zbulo](https://community.make.com/u/Zbulo)\
**Post date:** [April 26, 2022, 4:38pm UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/1 "2022-04-26T16:38:23Z")

</div>

Hey there, I’m struggling to attach files to Gmail’s “Send an email”-action:

1. Create a Google Doc from template
2. Create a share link to attach to the Airtable record, download document doesn’t work here.
3. Update the record
4. Download a document to attach to Gmail. Neither the export/PDF link, share link or Airtable attachment are working. ☹
5. Send the Gmail

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/b13c849e80d91cfd6bea76efb2160173be8a0ed1.png)

1. Is the above correct in terms of what is not working?
2. How can I attach Airtable attachments to Gmail? (I got a separate scenario for that)

Thanks for your input!

---

<div class="post-metadata">

**Author:** ![Zbulo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/zbulo/32/603_2.png) [@Zbulo](https://community.make.com/u/Zbulo)\
**Post date:** [April 26, 2022, 5:26pm UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/2 "2022-04-26T17:26:23Z")

</div>

> [@Zbulo](#):
>
> 1. How can I attach Airtable attachments to Gmail? (I got a separate scenario for that)

Got one step further, one can attach Airtable files with a HTTP “Get a file”-module.

It seems rather cumbersome to handle multiple files in an iterator / aggregator:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/c158c062c51d9cf3ea965cee1fa3ed9d4e732b7e.png)

It seems I don’t have control over the file names this way, neither did I manage to attach all three files to Gmail…

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/a4b1a779958517e77bb2f4af96f0267d66181977.png)

---

<div class="post-metadata">

**Author:** ![JimTheMondayMan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jimthemondayman/32/223_2.png) [@JimTheMondayMan](https://community.make.com/u/JimTheMondayMan)\
**Post date:** [April 27, 2022, 5:34pm UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/3 "2022-04-27T17:34:40Z")

</div>

@Zbulo

The easiest way is to specify the target structure type in the Array aggregator to be the “Attachments” structure from the “Gmail - Send an email” module.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/390942bb4f6a283430e22f7893d6ccfc319aaaa9.png)

Once you’ve done that, you will be able to specify the file names that you want.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/a4f56321cd0b37ba37472d5f310a00eeb49ace88.png)

Finally, in the Gmail module, **map** the array from the aggregator to the Gmail attachments.

* * *

Jim - [The Monday Man (YouTube Channel)](https://www.youtube.com/TheMondayMan?sub_confirmation=1)  
Watch Our Latest Video: [Is the System Down or is it just me?](https://youtu.be/TUX-HntHV3I)  
Contact me directly here: [Contact – The Monday Man](https://themondayman.com/contact/)

---

<div class="post-metadata">

**Author:** ![Zbulo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/zbulo/32/603_2.png) [@Zbulo](https://community.make.com/u/Zbulo)\
**Post date:** [April 28, 2022, 5:01pm UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/4 "2022-04-28T17:01:48Z")

</div>

@JimTheMondayMan thanks for your input.

The aggregator is setup the way you describe it. (I just realized that switching to map, I can actually influence the file name - thanks for pointing this out. 🙂)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/791bc2311adfc5eb946db1bddae0fae07a705a7a.png)

The Gmail module is using the output and recognize that there should be multiple files.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/f591b45a0aeff328d3f14437d011e7df5dd9cab8.png)

But only one of the three files is attached.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/26fced792771b6f0b08a04c6a0b3b67175c840ef.png)

Am I missing something here?

---

<div class="post-metadata">

**Author:** ![JimTheMondayMan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jimthemondayman/32/223_2.png) [@JimTheMondayMan](https://community.make.com/u/JimTheMondayMan)\
**Post date:** [April 28, 2022, 6:25pm UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/5 "2022-04-28T18:25:27Z")

</div>

@Zbulo

You need to turn on map at the higher level:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/41de8354be2a69d28fb46c36dedfc11fec941805.png)

Then put the entire array there.

* * *

Jim - [The Monday Man (YouTube Channel)](https://www.youtube.com/TheMondayMan?sub_confirmation=1)  
Watch Our Latest Video: [Is the System Down or is it just me?](https://youtu.be/TUX-HntHV3I)  
Contact me directly here: [Contact – The Monday Man](https://themondayman.com/contact/)

---

<div class="post-metadata">

**Author:** ![Zbulo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/zbulo/32/603_2.png) [@Zbulo](https://community.make.com/u/Zbulo)\
**Post date:** [April 29, 2022, 3:39pm UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/6 "2022-04-29T15:39:37Z")

</div>

Thanks @JimTheMondayMan!

I didn’t realize that this was possible, learned something new today. 🙂

I’m working on combining this with attachments from other steps now.

---

<div class="post-metadata">

**Author:** ![Addison\_Appliances](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@Addison\_Appliances](https://community.make.com/u/Addison_Appliances)\
**Post date:** [June 15, 2022, 12:25am UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/7 "2022-06-15T00:25:41Z")

</div>

Hi all, I’m new to Make. This thread was super helpful but I can’t seem to get all attachments in to one email to send to a service client. Here is what I’ve done so far:

 ![Screen Shot 2022-06-15 at 10.21.17 am](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/e/eccd25a2684316eeeea6fb68b43ff6069efde492.png)

 ![Screen Shot 2022-06-15 at 10.21.33 am](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/2/2dca24fbcabc0b76caa642c77840c2b253ee9b27.png)

 ![Screen Shot 2022-06-15 at 10.21.41 am](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/6/63bb296ced3d63fc308718edb9a5186aa1d50726.png)

 ![Screen Shot 2022-06-15 at 10.21.48 am](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/8/865935b592f9d36749d6bf96e5e1d50103df9c5c.png)

 ![Screen Shot 2022-06-15 at 10.22.23 am](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/2/261dfcba35f24458dca3d2469df8edb4ae24d203.png)

 ![Screen Shot 2022-06-15 at 10.24.05 am](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/e/ed9213cc23301271f0f709166ecdafecd71c8f86.png)

I’m obviously missing something here, because of the Gmail module error. Any help would much appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![loic.wiseflow](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/loic.wiseflow/32/132_2.png) [@loic.wiseflow](https://community.make.com/u/loic.wiseflow)\
**Post date:** [June 15, 2022, 12:34am UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/8 "2022-06-15T00:34:27Z")

</div>

Hi @Addison_Appliances,

You need to map the actual array in your Gmail attachment field. Right now you mapped the file name of the first item in the array.

Try to map this {{34.array}} in the attachment field. That should do the trick

---

<div class="post-metadata">

**Author:** ![Addison\_Appliances](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@Addison\_Appliances](https://community.make.com/u/Addison_Appliances)\
**Post date:** [June 15, 2022, 1:58am UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/9 "2022-06-15T01:58:49Z")

</div>

Hey @loic.wiseflow,

I’m getting this as a reponse:

 ![Screen Shot 2022-06-15 at 11.58.08 am](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/1/135c0e9b9070f7d2f59c487a22e41e6a2933e26a.png)

 ![Screen Shot 2022-06-15 at 11.58.15 am](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/0/0cf67e359ccfa7979451a9ddd823c80682bddd8a.jpeg)

Thanks

---

<div class="post-metadata">

**Author:** ![loic.wiseflow](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/loic.wiseflow/32/132_2.png) [@loic.wiseflow](https://community.make.com/u/loic.wiseflow)\
**Post date:** [June 15, 2022, 2:12am UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/10 "2022-06-15T02:12:40Z")

</div>

Sorry I am on my phone, try {{24.array}}

---

<div class="post-metadata">

**Author:** ![Addison\_Appliances](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@Addison\_Appliances](https://community.make.com/u/Addison_Appliances)\
**Post date:** [June 15, 2022, 2:28am UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/11 "2022-06-15T02:28:32Z")

</div>

That’s ok, thanks for your help. I ran the scenario in full but it sent individual emails instead of one with multiple attachments.

Thanks.

---

<div class="post-metadata">

**Author:** ![loic.wiseflow](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/loic.wiseflow/32/132_2.png) [@loic.wiseflow](https://community.make.com/u/loic.wiseflow)\
**Post date:** [June 15, 2022, 2:57am UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/12 "2022-06-15T02:57:56Z")

</div>

That is another issue. From taking a look at the scenario overview you try to create several documents from google sheets row and send them as attachments in one email, correct?

In this case you need to remove the iterator. On your aggregator select your “google sheets - search rows” module as the source.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [September 7, 2023, 2:22pm UTC](https://community.make.com/t/gmail-attachments-google-docs-pdf-from-template-and-airtable-attachment-fields/929/13 "2023-09-07T14:22:58Z")

</div>


