Sync Drive Delta Query - Parent Id changes

Jimmy 1 Reputation point
2021-09-30T14:43:14.9+00:00

I'm using the delta query to sync the contents of a drive.

I noticed that a file that I uploaded in a folder, say test.txt, has a certain parentId (parentReference -> id).

When I delete test.txt and query the API, it correctly returns the file with the same Id as before and the deleted facet. However, the parentId is different than before.

While the parentId referenced the folder test.txt was in before, the parentId now references the root folder, which is not correct.

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.
354 questions
{count} votes