Hi community! I am am new to zapier and have now exhaustes my search skills.
I receive plenty of invoices (generic mail address, forwarded to GMail) and would like to dump them all to GDrive. For attached PDFs, my zap works fine. But I can’t figure out a solution to store the ones where the mail body is the invoice.
GDoc is discontinued.
GMail won’t connect to apps like Docamatic (which works in testing).
IMAP won’t let me filter for attachments.
What trick am I missing here?
Best answer by Troy Tessalone
@LiPi
Testing a Zap step can be skipped.
When testing a Filter step it helps you understand if sample record being used would have passed the configured conditions.
If a field is being used on the left side of a Filter condition, but that field is not present in the sample record being used for testing, then yes it will show as blank in the Zap Editor.
I suggest turning the Zap ON and testing live once you feel the Zap steps are configured correctly.
Thank you for pointing out the paid GMail account, I assumed the restrictions applied to all accounts.
I am now fetching the mails via IMAP and filter for specific sender names.
Ideally I would like to filter for existence of an attachment but I am stuck here: I only want to pass on mails without any attachments. If I pick one of those mails for testing, I can not select Attachment as a field for “Only continue if…” because there is none. If I pick a mail with an attachment and “Only continue if…” Attachment does not exist, the test fails and I can not continue. Is there a way around this?
Edit: I was confused by the filter field turning blank if I test a mail without attachment. But it still seems to filter for existence of attachments. Weird...
When testing a Filter step it helps you understand if sample record being used would have passed the configured conditions.
If a field is being used on the left side of a Filter condition, but that field is not present in the sample record being used for testing, then yes it will show as blank in the Zap Editor.
I suggest turning the Zap ON and testing live once you feel the Zap steps are configured correctly.
Yes, the blank field threw me off. The first instinct is to assume that the filter forgot what field it is filtering for but apparently that’s not the case. Splendid, thank you
One issue I have in a similar zap to store attached pdfs:
Trigger is new attachment in GMail → works fine.
Filter if Attachment mime type is application/pdf → works fine, only mails with PDF attachments are left.
Save attachment to GDrive → if a mail has a PDF attachment AND any other attachment, all are saved to GDrive. How can I only save the PDF attachments?