Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Sort email in inbox

(1) ShareShare
ReportReport
Posted on 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
    29 on at
    Re: Sort email in inbox

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

  • kinobijei Profile Picture
    on at
    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 at
    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,153 Super User 2025 Season 1 on at
    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492