Skip to main content
Community site session details

Community site session details

Session Id : zpY0WAxmZvfBJVzI7mhzYS
Power Automate - Building Flows
Answered

Getting the most recent modified date from a SharePoint list?

Like (0) ShareShare
ReportReport
Posted on 21 Mar 2022 12:55:44 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

 

 

  • Rob_CTL Profile Picture
    on 23 Mar 2022 at 09:37:10
    Re: Getting the most recent modified date from a SharePoint list?

    Great idea, thanks

  • Verified answer
    KvB1 Profile Picture
    1,596 on 21 Mar 2022 at 13:32:34
    Re: Getting the most recent modified date from a SharePoint list?

    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

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete