Outlook: getting older messages first

Hello,

I have configured a process which starts by collecting the inputs contained in each mail message received on an Outlook inbox. I am using the UiPath activity “get outlook mail messages” to download the emails and get the necessary data from the body of each email. By default, this activity gets in first place the most recent messages. I would like to process the messages starting from the oldest to the newest one. Is there a way to do so?

Thank you

Yes - I am pretty sure that this is in the UiPath Basic Training or on one of the Tutorial videos. You need to reference the Date value of the Headers Property once you have your messages in a collection of MailMessages.