I have a Zap which simply uploads an attachment from my email to Google Drive. However, I specifically want to trigger it based on putting a label on the mail, not trigger for each attachment as I add the label manually after having received the email. Without the Attachment trigger, it seems impossible to loop over the attachments individually.
I considered everything:
- Can I have a double trigger, first trigger on label then attachments → No, other way around is possible with filter but that won't trigger as I don't add the label on receiving the email.
- Can I use webhooks to chain triggers → No because the trigger of the second webhook must be the first webhook, so you still can't add another trigger.
- Can I somehow loop over the Attachments field → No because it is a single URL that hosts all documents
My last effort was to loop by number over Attachment Count. That atleast gives me the right amount of loops, however, I can't actually change the input between loops. I can set the File to Attachment 1, but that can't be updated to Attachment 2 on the second loop because I can't do “Attachment ” + LoopCount. Kinda makes the looping logic pointless to me if you can't make the input data variable. I also don't know how many attachments I will have, so I can't just copy paste for every item.
So my question is, how do I make it such that the below field is updated to “Attachment 2 Attachment” on the next loop etc…?