Best answer

Downloading multiple Gmail attachments separately


Userlevel 1

Hi everyone, I’ve seen similar posts, but no difinitive solution.

I have a numerous zaps that trigger with the receipt of multiple attachments [often from GMAIL] but could be from online forms.

I need to download these attachments into either dropbox, G Drive or attach to a new email as separate files AND NOT AS A ZIPPED / COMPRESSED SINGLE FILE

Is there a workable solution out there?  either with Formatter or something else?

The closest I’ve come is with formatter, but even then you have to input a FILTER function for a finite number of attachments.

Thoughts?

Thanks!

icon

Best answer by Danvers 5 March 2021, 14:12

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.

10 replies

Userlevel 7
Badge +14

Hi @Jangus 

Try the new Looping action: https://zapier.com/apps/looping/integrations

Userlevel 7
Badge +12

Hi @Jangus!

 

For Gmail, there’s a trigger that will give you the attachments individually. If you use the Gmail trigger New Attachment, the Zap will trigger for each attachment, so you can run each step of the Zap per attachment. It often requires a Filter step so that the Zap only continues when the email of the attachment meets certain conditions, but’s it’s a good option for working with Gmail attachments.  

P.S. We’ve created a guide to help with this workflow: 

 

Userlevel 1

Hi @Jangus 

Try the new Looping action: https://zapier.com/apps/looping/integrations

Thanks very much Troy.

Will give it a go!

Userlevel 1

Hi @Jangus!

 

For Gmail, there’s a trigger that will give you the attachments individually. If you use the Gmail trigger New Attachment, the Zap will trigger for each attachment, so you can run each step of the Zap per attachment. It often requires a Filter step so that the Zap only continues when the email of the attachment meets certain conditions, but’s it’s a good option for working with Gmail attachments.  

THANKS VERY much for that.  That would mean though, that we have to have say, potentially 20 filters for 20 attachments?  

 

Userlevel 7
Badge +8

Hi @Jangus - Yes, that’s possible but don’t be afraid to give it a try. Let us know how it worked for you!

Userlevel 7
Badge +11

Hey @Jangus, were you able to get this working in the end? Keen to make sure you’re all set here!

Userlevel 1
Badge

@Jangus, any luck creating the loop for this use case?  I’m looking to explore something similar, but I’m not sure exactly which set of data to use in order to grab each attachment.  If I use the Filename or file ID, I’m able to create the correct number of loops, but the file is uploaded to GDrive as a text file containing only the file ID.  Alternatively, if I try to use All Attachments (exists but not shown), only one loop iteration will be created.  @Troy Tessalone, any suggestions, please?  Thank you!

Userlevel 7
Badge +14

Hi @mrose 

Try using this Gmail trigger:

Article: https://zapier.com/help/doc/common-problems-with-gmail#i-have-multiple-files-on-my-email-but-the-zap-is-giving-me-a-zip-file-combining-all-the-files

Userlevel 1
Badge

Thanks, @Troy Tessalone.  Is there any way to upload each of these attachments as another file format (ex. jpg)?

Userlevel 7
Badge +14

@mrose 

Check out the CloudConvert app: https://zapier.com/apps/cloudconvert/integrations