I want to filter incoming mail based on subject name. I either use Filter property in Get Outlook Mail Message activity or read unread mails (say limit 30) and put them in a list of mail messages and loop them.
If I want to use the filter property, I should be doing something like this (Method 1).
Or else I could use something like this (Method 2).
For each item in MailList
item.Subject.toLower.Equals(“test”)
I want to filter mails with subject containing string value “Test”. For example mail coming with subject Test 1, Test 2, Test ABC etc. I could do something like item.Subject.toLower.Contains(“Test”) in Method 2.
I feel Method 2 is inefficient since Get Outlook Mail Message will read all mails (30 mails by default) regardless of the subject and then I filter out them in a For Each loop.
Is there any method exists to filter mails subject containing string “Test” by configuring Filter property in Options pane?
There is no other option then this you can filter based on received time and then Loop it that may be effective. we can use contain inside the filter option.
@William_Thomas Welcome to our community!
You can do something like this in filter property. "[categories]='test'"
Please check available syntax from here.