Get Outlook Mail Activity: (read all unread emails)
Want to check something on Excel File (Compare Excel data with Email) 3. IF excel comparison not match then I want to move that email to One Specific “XYZ” Folder and need to unread that email.
How should I achieve this ? My question is at Point 3.
@pari_patel I see your problem: Move Outlook Mail Message does not return an MailMessage object corresponding to the moved email so you cannot use it as input parameter for Mark Outlook Mail As Read/Unread. I will add this as enhancement for a next release of Mail package.
As a workaround, you can store the message ids of the matching emails using mailmessageobject.Headers("Message-ID"). Then call again Get Outlook Mail Messages activity passing the list of message ids to FilterByMessageIds parameter and also check MarkAsRead option.
Another option: you can also mark the email as unread before moving it.