Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Power Automate - How to Get recent created list of rows from sharepointlist based on OrderID

(0) ShareShare
ReportReport
Posted on by 16

I have created a shoppingcart apps with same OrderID for same batch of ordering. This data would be saved in sharepointlist. How to I filter query to get the newly created list of rows with same OrderID?

 

in the Get Items, filter query I put 

filter query.png

in compose:

compose.png

then create html table

create html table.png

got error

error.png

 

I'm not sure is it the right steps

  • takolota1 Profile Picture
    4,894 Super User 2025 Season 1 on at
    Re: Power Automate - How to Get recent created list of rows from sharepointlist based on OrderID

    This template can give the most recent or the oldest records for unique values in given columns: https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Get-Distinct-Records/td-p/2191533

  • laclws Profile Picture
    16 on at
    Re: Power Automate - How to Get recent created list of rows from sharepointlist based on OrderID

    I don't know how to do it. Can you show me the correct way to do it? I want to filter the last number of rows with highest OrderID. And convert into html table. 

  • Nived_Nambiar Profile Picture
    17,886 Super User 2025 Season 1 on at
    Re: Power Automate - How to Get recent created list of rows from sharepointlist based on OrderID

    But i have a question

    in the screenshot

    Nived_Nambiar_0-1679723748535.png

     

    It seems you are filtering by OrderId and then sorting by orderID, Should it be done with created date instead 

     

    As filtering by order id and then sorting by order id does not make any meaning  ?

  • laclws Profile Picture
    16 on at
    Re: Power Automate - How to Get recent created list of rows from sharepointlist based on OrderID

    Thanks Nived N,

     

    Is it possible to sort by last highest OrderID? I tried the Date and Time before but it will capture all the rows in the list. I'm not sure whether I think right or wrong, but the reason I put the Time so that if I have 2 orders within same day, I can capture only the latest Order based on recent time. I tried many times but failed using date and time to filter the most recent order.

     

    Then I saw other people are using last highest OrderID, I managed to set my apps to have same OrderID for same batch of items ordered. but not sure how to do it for multiple rows of last highest OrderID.

  • Nived_Nambiar Profile Picture
    17,886 Super User 2025 Season 1 on at
    Re: Power Automate - How to Get recent created list of rows from sharepointlist based on OrderID

    Hi @laclws 

     

    Instead of order by order id, you should sort it by created date.

     

    Second

     

    Nived_Nambiar_0-1679721062357.png

     

    This should be written in expression part 

     

     

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

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!

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 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1