How to mark email as unread after doing some process

Hi
I was also searching for a solution to mark the Mail as unread after doing some process.
Here is my solution:

  • Use InvokeCode activity with the following code inside Exchange Scope
    Dim message As EmailMessage= EmailMessage.Bind(exchangeService,id, New PropertySet(BasePropertySet.FirstClassProperties, EmailMessageSchema.IsRead) )
    message.IsRead=False
    message.Update(ConflictResolutionMode.AutoResolve)

  • Provide exchangeService and Email id as Arguments

1 Like