This is my first post here in the n8n community. I’m currently working on a basic workflow where I’m trying to:
Read emails using the IMAP Trigger.
Filter only those emails that have the subject “Invoice”.
Check if the email contains a .pdf attachment.
For this, I’m using two IF nodes:
The first one checks if the subject contains Invoice.
If true, the second one checks whether the email has an attachment.
The issue I’m facing is that I’m not sure what the correct values for Value 1 and Value 2 should be. Because of this, my conditions are failing every time.
Is there a better way to check if an attachment exists in the email?
Ultimately, my goal is to download the attachment whenever it is present. But before that it should fulfil this condition.