Some plz tell me, how to add filters in outlook mailmessage activity? Is there any condition to use?
Could you please tell more details about the issue. On what basis you want to filter mails in Outlook like By subject, From, Body and etc…
If you want to filter mails from an id then use below expression
In Get outlook mail activity, we got an option called FILTER in the property panel of that activity
–There we can any conditions to compare our value with the methods of mailmessage class that includes,
so to mention the condition we need to place as a string between double quotes like this
"[Subject] = ‘yourmail subject’ "
"[From] = ‘yourusernameof the mailid’ "
"[SenderAddress] = ‘email@example.com’ "
"[ReceivedTime] = ’ " + now.tostring(“MM/dd/yyyy”) + " ’ "
"[ReceivedTime] = ’ 08/22/2019 ’ "
simple isnt it
hope this would help you
kindly try this and let know for any queries or clarfication
@johns as mentioned by earlier comments thats one way , even you can apply more filters on the mail object as it contains more methods like mail.Body, mail.Priority, mail.Sender,etc.
Object of type System.Net.MailMessage