I want filter mail outlook.
I have value SenderEmail = ‘firstname.lastname@example.org
value Subject = Report
If I wanvalue t use filter in Get outlook mail messages.
How to code it?
Condition Filter mail that SenderEmail same value SenderEmail and SubjectMail contain Subject.
Please guide me about it.
You may check below documentation
Hope this may help you
But I don’t know how to pass variable in Filter Expression.
Try below expression in Filter field.
Filter mails from specific sender.
"[SenderEmailAddress] = '"+varEmail+"'"
Filter mails based on specific subject.
"[Subject] = '"+varSubject+"'"
Here varEmail and varSubject variables are of type String.
You can use a for loop and an if condition using filter straight in the get outlook activity cant include conditions like contains ,starts with etc
so better to take the output of get mail activity and loop the activity with type argument as System.Net.Mail.MailMessage
@lakshman error as below.
It should be like below.
"[SenderEmailAddress] = '"+fromEmail_Round1+"' AND [Subject] = '"+mailSubject_Round1+"'"
please find the below sample
Main.xaml (6.3 KB)
Further to @lakshman’s post.
Check out the screenshot below:
For the full list of filter examples check out the documentation here.
@nikhil.girish If I want use variable mailSubject_Round1 replace Report.
How to edit code?
"@SQL=urn:schemas:httpmail:subject LIKE '%"+mailSubject_Round1+"%'"
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.