I able to get it through for each row but that will not mark as read that particular Email ID. I want to read only that email and save the attachment and mark as read.
I hope you are using get mail actovity from office 365 package …if so it has option to mark as read …please use it
Cheers
Use the Mark Email as read/Unread activity to mark the mail as required.
Hope it helps!!
@mk @Anil_G @argin.lerit I know the option to mark as read but my question is how can I read email from particular email id ? I am unable to filter the get outlook via email id.
Try this
“contains(from/emailAddress/address, ‘EmailID’)”
Or
"from/emailAddress/address Eq 'EmailId'"
Cheers
But how this will mark as read only that email ?
This will filter on email id so only those emails are retrieved…and when only those are retrieved…only those emails would be marked as read
Cheers
Ok, let me try.
Are you using Headers("UID")
or Headers("Message-ID")
for the email ID?
The attached XAML uses the Headers("Message-ID")
property and accomplishes the task.
Make sure to change the value in these fields:
MarkEmailAsReadById.xaml (7.0 KB)
Thanks!!
Getting below error.
Get Outlook Mail Messages: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.
Filter by message id giving me 0 value. What is the right thing to put there ? Email Id in the filterby messageid ?
When you read all the emails, try to WriteLine their Message-ID like this:
You will see something like this:
It looks like an email address format but that is the Headers(“Message-ID”) of the email.
See if the Message-ID is unique enough for your use-case.
Hope it works for you. Thanks!
Ok, So, I have to check first the messageid for that email and check if it is same every time ? If it is then I can use it in filterbymessageid for that email ? Correct me If I am wrong here.
You copied exactly i guess please remove single and souble quotes and re add in the code
Cheers
That is correct. How were you getting the ID before?
Thanks
It says condition is not valid.
Instead if contains can you please try with equals
I believe fromadress might not support contains
"from/emailAddress/address eq 'someone@company.com'"
And I hope you are using this in filter
Cheers
After @ se4ction is remains same but the starting integers are changing every time for particular emailid . so does that work in my case ?
Wait, do you mean “email address” and not “email ID”? I’m confused because @Anil_G is giving email address related suggestions.