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

Using Filter Query to get the latest item

(0) ShareShare
ReportReport
Posted on by

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
    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
    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

Forum hierarchy changes are complete!

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard