Get Exchange Mail Message read just 1 unread mail

Hi

How can we use Get Exchange Mail Message activity to read only the first unread mail at a time? I only want to pick up the first unread mail, mark it as read, continue with the automation.
The next time it should pick up the first unread mail.

@prajeeth1992,

In properties of Get Exchange Mail Messages,

Set the value of Top to 1

Check the Mark as Read option

regards,
Dominic :slight_smile:

Hey, thanks.
I tried the same step but it was always picking the topmost mail. For example, if there are 2 unread mails at position 1 and 2. It will pick the first one,mark it as read and the next time it wont pick anything as the first mail is not unread.

@prajeeth1992, In that case use get exchange mail message activity with Onlyunreadmessage checked and output it to List(of MailMessage)

Then follow this approach,

Regards,
Dominic :slight_smile:

I am having the same issue. It worked when using the Outlook activity, but not for the ‘GetExchangeMailMessages’ activity.

I have the following checked:
IsBodyHtml
MarkAsRead
OnlyUnreadMessages
Top = 1

It appears to look at the top 1 message only, regardless as to whether it is read or unread. I need this to look at the top 1 unread message.