Skip to main content
Question

Attaching PDF to Action Send Email in Gmail


  • Beginner
  • 4 replies

This post has been edited by a moderator to remove personal information. Please remember that this is a public forum and to remove any sensitive information prior to posting.

I’m having quite a hard time figuring out what exactly I’m supposed to put in this attachment box below to get a PDF file to send in this gmail email zap.

 

 

I’ve done research and this is the best info I found below but I still can’t make out what I’m supposed to do, any assistance would be very appreciated.

 



Thanks

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

8 replies

  • Author
  • Beginner
  • 4 replies
  • July 6, 2022

Nevermind, I have figured out a solution but am met with yet another problem.

 

I uploaded the file to Dropbox and just copy > pasted the Dropbox link to the attachment box. The email sends with the PDF file attached but the file does not open and is corrupted. Please advise?

 

 


jesse
Forum|alt.badge.img+9
  • Architect
  • 1348 replies
  • July 6, 2022

Hey @HTE happy to help here! When you click into the “Attachments” field to select data from your previous step, are you typing in the download URL and adding the file ID from the previous step to the end of the URL? That should do the trick!

Otherwise, it looks like you may be having some internet connectivity issues that are preventing your file from being previewed and I wonder if that has resulted in a partial download/broken file?

Sending a screenshot of how you have things typed into your “Attachments” field would be super helpful in continuing to troubleshoot this for you. 🙂


  • Author
  • Beginner
  • 4 replies
  • July 6, 2022

This post has been edited by a moderator to remove personal information. Please remember that this is a public forum and to remove any sensitive information prior to posting.

I have no clue where to locate the FILE ID??

 


Forum|alt.badge.img+5
  • Zapier Staff
  • 54 replies
  • July 7, 2022

Hey, @HTE ! 

Here’s a general guide to sending files in Zaps: https://zapier.com/help/create/basics/send-files-in-zaps

For Google Drive, specifically, you can find the file ID in the share link:

  • Right click on the file in Google Drive
  • Click Get Shareable Link
  • At the end of the URL, copy everything after “?id=”

Then, use it to replace “FILE_ID” in this string: https://drive.google.com/uc?export=download&id=FILE_ID

 

​Can you please give that a try and let me know how it works out?


  • Author
  • Beginner
  • 4 replies
  • July 7, 2022

There is no “?id=” in my link that I copied from the Google Drive file?

 

I can share the link if you’d like...


Liz_Roberts
Forum|alt.badge.img+8
  • Zapier Staff
  • 1366 replies
  • July 8, 2022

Hi @HTE - that certainly is strange. I see that you have been chatting with Joseph on our Support team and it seems you were able to run a successful Zap!

If you are still having trouble with this one, feel free to share a screenshot with Joseph on your initial Support thread so that they can continue digging in to troubleshoot!


  • Author
  • Beginner
  • 4 replies
  • July 8, 2022

Zap was not successful, still the same issue. Joseph has abandoned me


nicksimard
Forum|alt.badge.img+11
  • Zapier Staff
  • 2115 replies
  • July 13, 2022

Hey @HTE!

Let’s see if we can get you up and running here :)

I tested this and it worked for me:

  1. In Google Drive make sure the file has the Anyone with the link permission
  2. Copy the link
  3. Take the part between d/ and /view (that’s the file ID) and insert it into:
  4. https://drive.google.com/uc?id=PUT-THE-FILE-ID-HERE&export=download

So this…

https://drive.google.com/file/d/1xrkVsrdIrEk_7vminaDZrxmypCPd1bpp/view?usp=sharing

...becomes this: https://drive.google.com/uc?id=1UN8Yufj9ac7w0_xPRhntjm4CXgsjz20W&export=download

Can you give that a shot to see if it works for you?