Skip to main content

Notifications

Power Automate - General Discussion
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:
  • Re: Using Filter Query to get the latest item

    Dear @cmht @v-yetonggu-msft 

    thank you both for the solutions.

    thank you

  • Verified answer
    cmht Profile Picture
    cmht 82 on at
    Re: Using Filter Query to get the latest item

    Hi @Anonymous 

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

    cmht_0-1703075821697.png

     

  • Verified answer
    Re: Using Filter Query to get the latest item

    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

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard