Hello,
In my automation .I have to read the emails only if the senders are specified designed persons(sender 1 = abc@gmail.com sender 2 = xyz@gmail.com sender 3 = mnb@gmail.com).How do i do that?
Hello,
In my automation .I have to read the emails only if the senders are specified designed persons(sender 1 = abc@gmail.com sender 2 = xyz@gmail.com sender 3 = mnb@gmail.com).How do i do that?
Read Outlook Mail Messages.
For each Mail in MailMessages:
if(mail.sender.from.tostring="abc@gmail.com")
then { Statements}
Hope this helps
Fine in the filter property of get outlook mail activity kindly use this expression
â[SenderEmailAddress] = âabc@gmail.comâ OR [SenderEmailAddress] = âxyz@gmail.comâ OR
[SenderEmailAddress] = âmnt@gmail.comâ â
Hope this would help you
Kindly try this and let know for any queries or clarification
Cheers @cheersrpa
Hey âŚCan you please help me with the sample .xaml file.Because i got the error message like filter condition is not valid
I hope it must be type mistake
Try with senderemailaddress instead SenserEmailAddress
Cheers @cheersrpa
nopeâŚstill its not working
â[senderemailaddress] = âabc@gmail.comâ or [senderemailaddress] =âxyz@gmail.comââ
When i use the above syntax it showing as the condition is wrong
Try this,Hope you will get
â[SenderEmailAddress] = âabc@gmail.comâ or [SenderEmailAddress] =âxyz@gmail.comââ
When i use the above syntax the mail count is zero.But actually there are some emails with the specified senders in outlook
@cheersrpa
Do you want to read all the emails and then filter (sender 1 = abc@gmail.com sender 2 = xyz@gmail.com sender 3 = mnb@gmail.com).
In that situation, you can try this.
->Read all the unread emails.
â use for each activity and change the variable type to âSystem.net.mail.mailmessageâ
->then use âIfâ Condition item.from.tostring.contains(âabc@gmail.comâ) for multiple emails you can use OR condtion.
make sure that you have checked the unread mail in properities
as there no âmark checkâ, just wanted to say this actually worked for me.
only difference was my outlook is in french so it is:
â[De] = âabc@gmail.comâ OR [De] = âxyz@gmail.comââ
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.