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 Platform Community / Forums / Power Automate / Power Automate - How t...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 45

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

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    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 

     

     

  • laclws Profile Picture
    45 on at

    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
    18,138 Super User 2026 Season 1 on at

    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
    45 on at

    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. 

  • takolota1 Profile Picture
    4,980 Moderator on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 604

#2
Valantis Profile Picture

Valantis 502

#3
Vish WR Profile Picture

Vish WR 370

Last 30 days Overall leaderboard