Query about Get Email List activity

I have a question about the ’ Get Email List’ activity that comes with the UiPath.MicrosoftOffice365.Activities dependency and this is the activity:


This also the properties that I have configured:

My question is this, does this activity return only the latest emails that meets the filter criteria? And do I need to sort the list that it returns to place the newest email at the top?

Above image returns ALL emails that match your filter,not only the latest one.you must sort the results yourself to get the newest email first.

@RobinsonFrancis,

To get the latest email you will have to configure property Order By Date to NewestFirst

Hi @RobinsonFrancis

Yes — your current configuration is correct.
The Get Email List activity returns emails in descending order i,e newest → oldest by default.

Also with your two extra filters you have added, is not visible in ss.

Just make sure you want to read only unread emails or read as well, also once bot reads , do you want to mark it as read or not ?

@RobinsonFrancis

Default value of order by is newest first so it would get the latest if not changed

cheers

@RobinsonFrancis Limit email to first (It will extract only top one mail as we have assigned 1) Include sub folder false(No sub folders will get include while extracting mail) Unread only (It will read both readed and unread mail as the value set to false) With attacment only(It will only extract mail with attachment if we set the property as true) Importance(The importance of the email) Mark as read(It will mark the mail as readed if set true)