Filter outlook mail messages by SENDER

How to filter outlook mail messages by SENDER ?

1 Like

@fairymemay What should be the Sender Value?
You need to use the Output Variable of Get Outlook Mail Messages, which is a List of MailMessages
Iterate that List Keeping the Type Argument of For Each as MailMessage
Then Use an If Condition in For Each, Use the Condition in If as item.Sender.ToString.Contains(yourValue)

I hope this is What you needed :sweat_smile:

@supermanPunch and how to condition except sender ?

@fairymemay You can use the Condition, Not Item.Sender.ToString.Contains(yourValue)

@supermanPunch

and if i want filter subject next month.

item.Subject.Contains(DateTime.Now.AddMonths(1).ToString(“MMM”))

right?

@fairymemay Wow, You’re right :smile:

@supermanPunch it’ s error

@fairymemay You forgot to put a Closing Bracket ) :sweat_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.