How to retreive list of modified(Renamed) files in SharePoint online in specific time period using Graph Client api java

Dudekula,Amitabh 0 Reputation points
2023-02-09T05:43:25.6966667+00:00

How to retrieve all SharePoint files modified whose name changes in last one hour in SharePointOnline using GraphServiceClient java api ?

I went through some of the documentation and got below link its works for my requirement but looks like it will retrieve all the files in SharePoint online, However I need only the list of files list which are modified(Renamed) in specific time period.

https://learn.microsoft.com/en-us/graph/api/drive-list-following?view=graph-rest-1.0&tabs=java

Could you please suggest any ways to achieve this??

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,476 Reputation points Microsoft External Staff
    2023-02-09T08:45:22.36+00:00

    Hi @Dudekula,Amitabh

    You can try to use following api to get a set of items that have been recently used by the signed in user.

    GET /me/drive/recent
    
    

    Here is the document for more details

    List recent files


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.