Filter option in GetOutlookMailMessages

I need to filter the mails by multiple senders in Getoutlookmailmessages activity.
I used
“@SQL=(”“http://schemas.microsoft.com/mapi/proptag/0x0065001f”" like ‘%"+in_Domains+"%’)"
in filter option. My in_Domains argument contains “gmail.com;uipath.com”. But it is failing to retrieve the mails.
Could you please help me with the argument initialization?

Hi @t.chilmakuri

Have you tried giving wildcard cahracters like “*gmail.com;”

Refer to this link : How to filter messages in Get outlook mail messages

I need to filter mails from multiple Domains.
Example, I got mails from these domains: gmail.com, yahoo.com, uipath.com.
But I need to retrieve only the mails from gmail and yahoo.

Well lets go with get all mail messages approach.

  1. get all outlook mailmessages.
  2. Get mailObject.sender email address.
  3. Either check for @gmail or @yahoo email address
  4. Add the items to collections

This should be fairly straightforward.