0

I'm wondering if anyone has had to do a similar thing to be able to get all recent files from a particular site collection of sharepoint library

To get lists used i know i can use this - https://graph.microsoft.com/v1.0/me/insights/used

I tried the below to get recent files from a particular site collection of sharepoint library https://graph.microsoft.com/v1.0/sites/root/drives/{documentLibraryId}/recent

But it doesn't like it and doesn't work

1

Try the use the below GRAPH API to get the last modified items (recent items) from the library,

https://graph.microsoft.com/v1.0/sites/root/drives/<Library drive ID>/list/items?$orderby=lastModifiedDateTime desc

Hope this helps.

1
  • Thanks Shantha for the response and i can get the full list. but how can i filter it by the logged in user?
    – naijacoder
    Jun 9 '21 at 5:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.