Skip to main content
Community site session details

Community site session details

Session Id : 3NoCz9evoIrY9Xv7MhQMwO
Power Automate - Building Flows
Unanswered

Sort email in inbox

Like (1) ShareShare
ReportReport
Posted on 23 Nov 2019 11:16:30 by

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.

  • CU20011649-0 Profile Picture
    31 on 25 Mar 2020 at 19:44:57
    Re: Sort email in inbox

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

  • kinobijei Profile Picture
    on 23 Nov 2019 at 15:38:06
    Re: Sort email in inbox
    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.
  • kinobijei Profile Picture
    on 23 Nov 2019 at 15:25:37
    Re: Sort email in inbox
    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
  • RobElliott Profile Picture
    10,166 Super User 2025 Season 2 on 23 Nov 2019 at 15:11:01
    Re: Sort email in inbox

    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.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2