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 / Get List Item based on...
Power Automate
Answered

Get List Item based on Latest Modified line

(0) ShareShare
ReportReport
Posted on by 6

Hello,

 

I am building a flow integrating MS List. I need to obtain the "list item" that was recently modified item, whenever the flow runs.

I have tried using the Get Items 'Order By' functionality. Used the command "Modified desc&$top=1", but it did not extract the proper value.

 

Seeking help on how to obtain the item.

Categories:
I have the same question (0)
  • wskinnermctc Profile Picture
    6,519 Moderator on at

    That approach seems prone to errors.

     

    Someone could edit an item on the list and now that is the most recently modified and it might not correspond to what item you are attempting to reference with this flow.

  • Aatrox Profile Picture
    6 on at

    This is the item I need. There are several controls on who can modify and how the items can be modified. But, at the flow run-time, I need that item which was modified recently. 

    I cannot just select the highest ID no. because though it is the latest one created, but might not be the latest modified.

  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    Ok, if you know that process will work for you.

     

    In a Get Items - Order by field you need to put Modified Descending so it will be Modified Desc

     

    In the Top Count of the Get Items, put 1.

     

    So this will order the items by Modified descending and get the top 1

     

    Order By - Modified desc - Top Count 1Order By - Modified desc - Top Count 1

  • Aatrox Profile Picture
    6 on at

    This worked. Thank you so much.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard