I’m looking to set up a scenario where email attachments are used to update Google Drive files. I have one email inbox which will receive 2 different reports, each with a unique subject line and file name. I want the scenario to update a specific Drive file for each report. For example, my inbox receives 2 weekly emails:
- subject “Inventory Report” with attachment “Inventory Report.csv”
- subject “Active Rentals” with attachment “Active Rentals.csv”
I want each CSV to update its respective location on Google Drive. I have done this successfully in the past for a single email to update a single file. Where I’m having trouble now is implementing the conditional routing for different subjects or file names.
Here’s what I have so far:
- Gmail filters are set up to move the incoming emails to a label folder “Reports”
- Watch Emails looks for folder “Reports”, filter type: Gmail, query: has:attachment is:unread, mark as read when fetched, max results: 2
- Iterate Attachments on previous step
- Router splits the workflow in two
- Each branch to the Drive: Update a File modules has the filter Condition: email Subject = “Inventory Report” or Subject = “Active Rentals” for the correct destination file.
When I run this, the Gmail modules pick up only 1 attachment and nothing gets updated in Drive. What am I missing? Any help would be appreciated.
EDIT: Adding the blueprint and output bundle from the first Watch Emails module. No other modules produced any input or output bundles.
blueprint.json (17.2 KB)
Gmail-WatchEmails_Output.txt (21.9 KB)