Skip to main content

TL:DR How can I add multiple files to my Gmail step using Web Content Link?

 

I'm trying to automate my entire invoice creation workflow. Broadly speaking my Zap:

  1. Triggers on me uploading a new file (screenshot of my timecard) to a specified Drive Folder
  2. Creates a copy of an invoice template I’ve specified in Google Sheets
  3. Writes necessary info to that sheet
  4. Creates an email with invoice sheet AND two screenshots (total of 3 files)


I’m 95% there, but I’m stuck on how to attach multiple files in my Gmail step. I’m using an API request step to get the correct files. But I don’t know how to ‘separate’ these in order to add multiple attachments/web content links in my Gmail step. I feel like I need to loop and/or transform this data - but I’m not sure 😅

Thanks in advance for any and all help 🙏

Hi ​@Nick_L,

 

Welcome to the Community.

You're on the right track with your Zap! To attach multiple files in the Gmail step, ensure your API request outputs an array of file URLs. Use a Code or Formatter step to convert the data into the correct format if needed. Then, input the variety into the Gmail step's Attachments field, which supports multiple file URLs.

If you're still having trouble with this, please provide more details about the Google Drive API request and the Gmail step in your Zap. This will help us better understand the issue and provide more specific guidance.


Thanks ​@JammerS! This helped, I’ve got it working now.


Wow! Thank you for confirming that our resolution got the Zap running. This will significantly help our Community members to have as a reference for the same issue.