web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : GxZY2CZATaxbcZlEwMVb+H
Power Automate - Building Flows
Answered

Accessing "Modified" time from SharePoint action "Get files (properties only)". No clear way to access to the output.

Like (0) ShareShare
ReportReport
Posted on 19 May 2021 04:06:15 by 152

I can successfully query a folder in SharePoint and view output using the Get files (properties only) action. The output in JSON is like this:

 

{
 "@odata.etag": "\"2\"",
 "ItemInternalId": "942",
 "ID": 942,
 "Modified": "2021-05-18T23:54:53Z",
 "Editor": 
 {
 "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 "Claims": "i:0#.f|membership|office.admin@hydrogenutility.com",
 "DisplayName": "Office Admin",
 "Email": etc,
 "Picture": etc,
 "Department": "",
 "JobTitle": ""
 }
etc etc etc
}

 

...and so on as nested JSON elements for each file in the folder.

What I need to do is grab the 'Modified' elements for each file and find the newest, get it's ID and then perform actions on that file.

 

So how do I succinctly access the "Modified" element (key and value) for each file and work with them recursively?

 

Example output:

Screen Shot 2021-05-19 at 2.02.21 pm.png

 

Thanks in advance!

 

 

I have the same question (0)
  • HydrogenUtility Profile Picture
    152 on 19 May 2021 at 21:07:06
    Re: Accessing "Modified" time from SharePoint action "Get files (properties only)". No clear way to access to the output.

    Thanks again @tom_riha .

    Simple, elegant and effective.

    This is what I will do.

    Regards,

    Lachlan

  • Verified answer
    tom_riha Profile Picture
    10,127 Most Valuable Professional on 19 May 2021 at 18:25:46
    Re: Accessing "Modified" time from SharePoint action "Get files (properties only)". No clear way to access to the output.

    Hello @HydrogenUtility ,

    you can use 'Order By' field in 'Get files...' and set it to:

    Modified desc

    and at the same time limit the number of returned files to 1. That way 'Get files...' will return only the single file with the latest modified date and you can work with it.

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July 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