Filter the Mail messages


#1

Hi,

I’m getting a mail regularly in which TO ADDRESS was empty(My id is in Cc).
So i want to filter those mails from mailbox based on the mail Subject.
Please help me on this.

Thanks in Advance!!


#2

Hi @Abishek,

  1. Use “Get Outlook Mail Messages” Activity and you will get all MailMessages.
  2. Iterate through the list of MailMessages using ForEach
  3. With in the foreach use the below code to filter:
    item.Subject.Contains(“Ur Subject line/keyword”) or item.Subject Like “Request*”

Thanks.