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
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?