What is your goal?
I would like to filter out any internal emails that are from the same @domain.com in a ‘watch emails’ module.
What is the problem & what have you tried?
I had created a filter after the watch emails module, but the bundles don’t seem to be passing through my filter as expected.
Filter used:
Condition
from:email address: address
does not contain (case insensitive)
domain.com
AND
To recipients :email address.address
does not contain (case insensitive)
domain.com
Hey @James_Lee !
Your filter is failing because “To recipients” is an array, not a single value, so the condition isn’t evaluated properly.
The sender check is fine, but for recipients you need to handle each email inside the array. Right now it’s trying to match the whole list as one string.
That’s why internal emails are still passing through.
Dr. Tanvi Sachar
Monday Certified Partner, Tuesday Wizard
Hi @James_Lee The “To recipients” field is an array, so your filter can’t evaluate it the same way as a single value… Use an Iterator module before your filter to loop through each recipient address individually, then apply your domain condition. That should get it working as expected.
Hey,
Your filter isn’t working because email fields are not always simple text. They can include names or multiple email addresses, so your condition doesn’t match properly. A better way is to check the actual email address and use “does not end with your domain” instead of “contains”. This will filter internal emails correctly.
Hey all,
Thankyou for the replies!
I have used the below which seems to be working:
{{contains(lower(join(map(1.toRecipients; “Address”) + “,”)); “domain.com”)}}{{"
" & "
"}}{{contains(1.from.emailAddress.address; “domain.com”)}}
Not equal to
{true}