So I wish to filter the mails from my outlook mailbox based on two properties:
- Subject
- Category
I want to filter the subject filter by a wildcard and I want to retrieve mails only without the category.
I’ve tried the following, none of which seems to work
"@SQL=urn:schemas:httpmail:subject like '%Course Invoices%' AND urn:schemas:httpmail:category NOT LIKE '%yearly%'"
– throws an error: “Get Outlook Mail Messages: Cannot parse condition. Error at “@SQL=urn:schemas:httpmail:subject like '…”.”
"@SQL=urn:schemas:httpmail:subject like '%Course Invoices%' AND urn:schemas:httpmail:category <> 'Automation'"
– doesn’t throw any errors, but it also retrieves mails with the category having ‘Automation’
I’d love some help on this, also is it possible to combine [Categories] tag with the above SQL condition, if yes, how?