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 Answer 1

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? Commented Jun 9, 2021 at 5:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.