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 / Using Filter Query to ...
Power Automate
Answered

Using Filter Query to get the latest item

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All

 

I'm trying to get the latest item in share point list.

Can I use Filter Query in get items directly to accomplish?

maybe getting the largest ID.

andrew0lin_0-1703056803089.png

 

thanks 

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    I did a test for your reference.

    In my scenario:

    vyetonggumsft_0-1703070830156.png

    vyetonggumsft_3-1703070953697.png

    vyetonggumsft_1-1703071184603.png

     

    int(item()?['ID'])
    max(body('Select'))

     

    Best Regards,

    Sunshine Gu

     

  • Verified answer
    cmht Profile Picture
    82 on at

    Hi @Anonymous 

    The easiest way would be to use Get items with Top count=1 in advanced options:

    cmht_0-1703075821697.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Dear @cmht @v-yetonggu-msft 

    thank you both for the solutions.

    thank you

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 60 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 54

#3
Expiscornovus Profile Picture

Expiscornovus 47 Most Valuable Professional

Last 30 days Overall leaderboard