Skip to main content
Answer

Send only pdfs when receiving attachments

  • November 9, 2024
  • 3 replies
  • 54 views

Could you help me with this Zap?


When I receive an email in Gmail (I'm using workspace) that has more than 1 attachments, send them to an email address but ONLY the PDFs, not jpg, png...

I can't get it to only send the pdfs. It sends them all to me when an email attaches different types of files. 

1) Created the zap with the receive attachment trigger in Gmail.
2) Filter: If it does’t have pdf, it does’t continue (it works) / If it have 1 pdf, it works / if it has pdf+jpg+png… it sends all of them
3) I send email with GMAIL and in the attachment I put "Attachment: (exits but not shown)"
4) I always receive all attachments.

From what I see, it executes the flow 1 time for each attachment that the email contains, because in the zap history I see each of the attachments as Success. If there were 3 attachments with pdf, jpg and png, run once for the pdf, once for the jpg and once for the png.

Since it is filtered, I think the problem is in the last step, that you do not have to choose "Attachment: (Exists but not shown)", but I don't know how to do it. 

:(

Best answer by Troy Tessalone

Hi @juankibcn 

Help us have more info by posting screenshots showing how your Zap Filter step is configured in EDIT mode.

Make sure to map the variable that references “attachment” (SINGULAR).

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Answer
  • November 9, 2024

Hi @juankibcn 

Help us have more info by posting screenshots showing how your Zap Filter step is configured in EDIT mode.

Make sure to map the variable that references “attachment” (SINGULAR).


  • Author
  • Beginner
  • November 9, 2024

Hi @Troy Tessalone 

You said something very important: SINGULAR.
I was using a plural field!
Thank you very much.


JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • November 11, 2024

Hi @juankibcn,

 

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