Skip to main content
Best answer

Downloading xlsx to Google Drive from Gmail


Forum|alt.badge.img

Trying to save a gmail xlsx attachment to Google Drive keeps creating an empty invalid file.

I’m using the trigger “New Attachment in Gmail”  so it should fire for each attachment.

In my search string I include “filename:xlsx” which works in a gmail search.

Yet the file that is being created on Google Drive is not recognized as an Excel FIle.  (drive would display it with an excel icon, but it’s displaying with what looks like a blank image)

What am I missing here?

 

Best answer by GetUWired

Hi @Mary_S 

The trigger set up sounds correct. You would then pass in the attachment for the file and the name of the attachment for the name. 

 

Since the trigger is firing for any attachment, I would add a filter step as step 2 to only allow attachments of a certain type through

Perhaps something like 
 

 

View original
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.

2 replies

Forum|alt.badge.img
  • Author
  • Beginner
  • 10 replies
  • July 15, 2021

Update,  It is saving the xlsx file correctly, but it’s also saving the other garbage attachments that are not xlsx files.  I only want to save the one xlsx attachment.

 


GetUWired
Forum|alt.badge.img+12
  • Zapier Expert
  • 1030 replies
  • Answer
  • July 15, 2021

Hi @Mary_S 

The trigger set up sounds correct. You would then pass in the attachment for the file and the name of the attachment for the name. 

 

Since the trigger is firing for any attachment, I would add a filter step as step 2 to only allow attachments of a certain type through

Perhaps something like