Can we set markAsRead dynamically?


Is it possible to set markAsRead dynamically. I have below scenario please provide your suggestions.

Bot suppose to read the mail and save the attachment in file server. In case any problem with file server Bot may fail to save it but I believe it mark as Read. Next time when Bot runs It will not be able to process previous mail attachment.

I need to handle this situation. Thanks in Advance

Yes. You can either set to false or true of the Unread property

mailObject.UnRead = false or
mailObject.UnRead = true

Hi karthik,

Thank u for the reply. But I don’t see any property like UnRead to set. But I see other properties email.Subject and all

I don’t understand what could be the reason. Please give me some sample example if unhave