How to get list of moved files in Onedrive using API

Dhruvin Moradiya 30 Reputation points


I'm using MS graph API to manage files in OneDrive. I want to list changes in Drive folders. I used Delta to get a list of changes.

Delta works well in creating, updating, or deleting files. But it doesn't give us proper results for moved files.

Let's say I'm listing changes for /root:/folder1/folder2 , and I move one file from folder2 to the root or folder1; it doesn't provide anything to help determine that file has moved from folder2 to another location.

Is there any feature in MS Graph API that can list moved files from a particular folder?

Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
321 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SiddharthGautam-MSFT 545 Reputation points Microsoft Vendor

    Hello Dhruvin Moradiya,

    Thanks for posting!

    I tried to replicate the same scenario from my end, and I am able to face the same issue. As per my analysis, Delta only works with root folder but not with sub-folders.

    Since this Feature/Functionality is presently not available, you can submit a feature request idea using this support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs. I will also upvote for you.

    Hope this helps.

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