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

Notifications

Announcements

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 41

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,129 Super User 2025 Season 2 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
    41 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,129 Super User 2025 Season 2 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
    41 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,974 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard