I am creating an automation to read all the unread mails, and check them if they contains any word “some keywords” in the body or subject, and then copy the body in a text file.
I want then, only if “some keywords” is found (hence the message content is copied to a text file), I want the mail is marked as read. (This makes Get IMAP Mail Message with Mark As Read checked is improper). Anyone know how to do this?
customer activity? Could you share the overall idea?
@indra I did a lot of readup. But UiPath doesn’t allow any capability to do this. The System.Net.Mail.MailMessage that UiPath uses to read message doesn’t have an Unread property to set back to false.
The approach i used is as below. Not the best. But does the purpose. So the idea is, we are already in the for each loop. so we only have that item. Once all my conditions are met, I move it to a different folder (still unread) and now I use get outlook mail activity again, move the message back to the inbox and mark it read. I felt this was effective than calling vb scripts for outlook process.
But i am open to improve the process if people have other views.