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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get modified date of l...
Power Automate
Unanswered

Get modified date of lists and libraries

(0) ShareShare
ReportReport
Posted on by 49

I am trying to get the Modified date of a library, but failing miserably.. 

The issue is, we want to "archive" any library that has a modified date older the 1/1/2021..

 

Once I can figure out how to retrieve the Modified Date of the library, the the rest of the flow should go easy..
Setup a very basic flow to start, and this does get all the lists and Libraries:

shanemeisnerdhg_1-1651077591542.png

But no matter if I use Value, Body or Item to set the variable, it always returns the same data:

shanemeisnerdhg_2-1651077693947.png

any thoughts?

 

Categories:
I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @shanemeisnerdhg ,

    I think you'll need an HTTP request to SharePoint to get more information about a list.

    Method: GET
    
    Uri: _api/web/lists/getByTitle('ListName')

    you can then extract the information from the list by navigating the JSON output, e.g. the date of the last modified item:

    body('Send_an_HTTP_request_to_SharePoint')?['d']?['LastItemModifiedDate']

    image.png

  • shanemeisnerdhg Profile Picture
    49 on at

    @tom_riha Thank you.. That worked!! 
    Only thing I had to change was use "LastItemUserModifiedDate", as for whatever reason the LastItemModifiedDate had yesterday's date.. 

     

    "LastItemModifiedDate": "2022-04-27T13:34:01Z",
    "LastItemUserModifiedDate": "2022-02-21T15:40:57Z", 

    As I just wanted to run this against the libraries, I added a Filter Array:

    shanemeisnerdhg_0-1651172425033.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard