web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
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.

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,507 Super User 2026 Season 1 on at

    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.

     

  • kinobijei Profile Picture
    on at
    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
  • kinobijei Profile Picture
    on at
    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.
  • CU20011649-0 Profile Picture
    31 on at

    Hi, Were you able to find a solution to this? 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard