cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kinobijei
Frequent Visitor

Sort email in inbox

I would like to have the possibility to sort emails inside an inbox or any other folder or subfolder inside outlook.

When using the "Get email (V3)" I'm just able to retrieve the top message (that is the newest one).

But I need to get the oldest one.

Something like, using the SQL syntax, "order by asc".

 

My scope is to identify the oldest message in the box, that is the message with the oldest receivedDateTime field.

4 REPLIES 4
RobElliott
Super User
Super User

Why do you want to use a flow for this when you can just sort your inbox (or any other folder) by oldest on top?

 

0-Sort-email.png

 

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

 

Hello, this is just one step on the flow. Scope of the whole flow is to archive email existing in a shared mailbox (a lot of mails already in it), extracting metadata end store them into a sharepoint list. i want do to do it by retrieving one mail at a time, starting from the oldest

Once the oldest email has been archived i can delete it from the inbox, freeing space and continue with the new oldest one.
This is the simplest method that came into my mind to archive email, freeing the shared mailbox, without the risk to create duplicates in the sharepoint list. I could do it also starting from the newest one..... but i would prefer starting from the oldest one.

Hi, Were you able to find a solution to this? Thanks

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (25,176)