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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,568 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,607 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,664 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 30,996 Reputation points Microsoft Vendor
    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.