Best answer

Downloading xlsx to Google Drive from Gmail

  • 15 July 2021
  • 2 replies
  • 169 views

Userlevel 2

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?

 

icon

Best answer by GetUWired 15 July 2021, 15:49

View original

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

Userlevel 2

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.

 

Userlevel 7
Badge +12

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