Filtering Outlook mail messages by SENDER


#1

I want to get all unread emails in the Outlook inbox, and filter by sender. Is this something that can be done?
I know how to filter by date using “OrderBy(Function(x) DateTime.Parse(x.Headers(“Date”).ToString)).ToList”. I’ve tried replacing ‘Date’ with both From and Sender, but both result in errors.

Do I need to put something else in? Or can I use the ‘filter’ option in the Get Outlook Mail activity itself?


#2

one way to get sender is once you have list of mail messages, you can use for each with type argument as List and inside loop you can use “mail.Item.Sender.ToString” to get Sender Name.