Mark as read outlook message

While Executing Mark as read outlook message Activity it displays Below Error Please Suggest me for the solution.

Hi, welcome to the community!
Does this happens running on only one email or just when you have a lot of them?

Are we reading the mail one by one in for each ?

Hope we have used Get Outlook Message Activity to retrieve all the mails from Inbox .

Is below thing doesn’t helped you ?
In the property of Get Outlook Mail Messages activity, check against MarkAsRead

Thank you for replying @bcorrea
This is the Flow:
i am storing all emails in one variable --AllEmails
after that i am using foreach loop --Mail in AllEmail’s
In for each loop i am using if condition like – if(Mail.subject.contails(“Sample”))
Save attachments based on that subject
After that i need to change that email as read.

You Will make mail as read only when you save the attachments ?

@karthick
How can i make it as Read

while reading all your mails
In the property of Get Outlook Mail Messages activity, check against MarkAsRead

1 Like

Why cant your swap your activities and try .

If you wanted to make it read only when you have a particular subject
First Make it as read and then save your attachments ?

1 Like

@karthick

first i need to find all unread Mails, on that unread mails search with particular subject, then download attachments based on subject after that in need to put that mail as read

Try below steps

  1. Mark the Mail as read once your condition satisfies
    2)Now Try to downloaded attachments .
1 Like
  1. MarkAsRead Can be unchecked if you wanted to make all the mails as Read

  2. If you have a condition like mails should be marked as read only when your condition satisfies. Follow the below steps

  3. Mark the Mail as read once your condition satisfies

  4. Now Try to downloaded attachments .

Can you please share screenshot of Mark Mail as Read Properties .

1 Like

Ok, so i suspect that this is too fast for the component/server to process, try doing this to one email only to see if you get error, if not, then add some delay in the end of that loop, start with like 10 seconds or more…

1 Like

@bcorrea
I too suspect that . Thats why suggested to first mark it as read and then asked to download .

May be downloading attachments holds the mail

hi @karthick & @bcorrea
My task is get unread Mails, on that unread mails Filter with some subject then download attachments to particular mails, after that i need to put that mail as mark as read
Note: Every time mails will come i need to change that mail as mark as read because i didn’t put mail to mark as read bot second time execution time previous mail attachments also downloaded.

Hi @Rajasekhar_B alternate way is u can try to move mail to another folder.Use outlook mail message and set markasRead and unreadmailmessage should be checked.

@Tushar_Karkera bro
Same issue will occur bro now we are using inbox
you are telling use another folder at that time also same issue will repeat.

Hi @Rajasekhar_B No it will work once u read individual mail then according to your condition u will move that unread mail mail to another folder and mark the top first mail as read.

@Tushar_Karkera bro
actually i am getting multiple emails , for individual email we need to use foreach loop.

Hi @Rajasekhar_B it should work for multiple mails.

@Tushar_Karkera Bro can you please check it I got error like below screen


Sample.xaml (8.7 KB)