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 / Getting the most recen...
Power Automate
Answered

Getting the most recent modified date from a SharePoint list?

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a simple SharePoint list that is populated by a Sales PowerApps, on the app when a sale is made it creates and entry in the list which includes the resellers name, the purchase date, sales amount.

 

modifieddate.jpg

 

The next step I am working on is generating a report that will email the reseller their sales total, this is driven from a button in the app which fires the Flow, the reseller can press this button whenever they require a report.  As part of this flow when an item is processed it sets the "Reported" column to YES.  This of course means the "Modified" date is update also.  I'd like to include in the report email the date/time when the report button was last run, for this I want to be able to query the SharePoint list and find the most recent modified date which I can then output to the email body.  This is the bit I am bit stuck on and if someone could help with this, that would be great.

 

Thanks

Rob

 

 

Categories:
I have the same question (0)
  • Verified answer
    KvB1 Profile Picture
    1,596 on at

    In the get items action, under advanced options, there is a 'Sort by' field. You can use: Modified desc to get the return of the action sorted by the date they were modified. Then if you set the max amount of items to retrieve to 1, you just get the most recently modified item of that list. Of course you can also combine this with odata filter queries

  • Rob_CTL Profile Picture
    on at

    Great idea, thanks

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 456

#3
11manish Profile Picture

11manish 352

Last 30 days Overall leaderboard