I need to read the outlook mails from two different senderID.
Using below condition
“[From]='”+in_Config(“mailAccount”).ToString+“‘OR’”+in_Config(“mailAccount2”).ToString+“'”
which is throwing Condition is not valid. Any leads help me
I need to read the outlook mails from two different senderID.
Using below condition
“[From]='”+in_Config(“mailAccount”).ToString+“‘OR’”+in_Config(“mailAccount2”).ToString+“'”
which is throwing Condition is not valid. Any leads help me
Hello @Kniranjan555 , try this:
([From] = ‘sender1@example.com’ OR [From] = ‘sender2@example.com’)
Cheers!
Try this syntax:
"[From]='" + in_Config("mailAccount").ToString + "' OR [From]='" + in_Config("mailAccount2").ToString + "'"
Hope it helps!!
Regards,
if i change to this i was getting [Option strict on disallows implicit conversions from ‘string’ to ‘long’ error
try this its working
“([From] = ‘sender1@example.com’ OR [From] = ‘sender2@example.com’)”
you are placing “OR” you should check this once, you should use OR
what is the error that you are getting?
In the Filter expression editor in Get Outlook Mail message activity, filtering of Sender Mail address is not working. I also felt with the same issue.
Output of the Get outlook mail message activity, Let call it as MailMessages.
In this case I have used one assign activity after the Get outlook Mail message this will filter the mails.
- Assign => MailMessages = MailMessages.Where(Function(x)x.Sender.Address.ToString.ToLower.Contains(“abc@gmail.com”) Or x.Sender.Address.ToString.ToLower.Contains("def@gmail.com")).ToList
Hope it helps!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.