The GetIMAPMailMessage FilterExpression is by default set to ALL (to AND all the Criteria) but it does not appear to work if the Criteria includes SUBJECT and BODY, or SUBJECT and TEXT. It returns no matching email.
Examples of Working filters:
“FROM email.com BODY Citrix”
“FROM email.com SUBJECT 41” is same as: “ALL (FROM email.com) (SUBJECT 41)”
Examples that do NOT work:
“FROM email.com SUBJECT 41 BODY Citrix”
“SUBJECT 41 BODY Citrix”
“SUBJECT 41 TEXT Citrix”
I actually need to filter based on matching 3 criteria like:
“FROM email.com SUBJECT 41 BODY Citrix”
Adding the additional criteria does not matter, it is the Subject that doesn’t play well with BODY or TEXT
Yes I require at least 3 possibly 4. (FROM, SUBJECT, BODY (or TEXT), and possibly a second SUBJECT).
The fact that I can observe the issue with SUBJECT and either BODY or TEXT appears to be the root issue. The quantity of filters should not matter.
I stripped out all the quotes and made each a single word rather than a phrase. Same results using "SUBJECT ““41"” BODY ““Citrix””” Quotes are only required if the match contains spaces
None of the email is read in that folder… unchecking has no change.
If I do NOT put SUBJECT and BODY in filter it works fine. any combination of those returns 0
If this is not the reason, my last advice would be to verify that the account configured in the activity is exactly the same as the one you verified the emails.
• “subject eq ‘Office365 Quickstart’ and from/emailAddress/address eq ‘someone@company.com’”
O365 V1.11.1 works with both of the following:
“categories/any(a:a+eq+‘Red+category’)”
“contains(subject, ‘ICE’)”
But in V1.14.1 (and 1.16.1 prerelease) only the second works. The first one generates a BadRequest, Invalid filter clause.