1
votes

I tried to get drive changes(ACL, Edit and Create document, etc.,) of OneDrive for Business for a particular user using delta endpoint of MicrosoftGraph API. I have tried the following URI to get the latest document changes.

https://graph.microsoft.com/v1.0/me/drive/root/delta?$orderby=lastModifiedDateTime+desc&$filter=lastModifiedDateTime+gt+cast%28%272016-07-10%27%2C+Edm.DateTimeOffset%29

In the result of the above call, the filter is not working and the sorting is in ASC order instead of DESC.

Is there any mistake in the above URI? Please help me in this.

1
Delta doesn't support filter or order by, so those parameters are being ignored. I've created a pull request to the docs to make that more clear. The pattern for using delta expects that you use the @odata.deltaLink value to retrieve changes between calls, instead of setting a date filter.Ryan Gregg
@RyanGregg, Thanks for the response. I will use the "@odata.deltaLink" to get the changes between two calls.Gokulnath K

1 Answers

0
votes

As per the updated documentation Microsoft Graph delta for OneDrive doesn't support to $filter and $orderby.

Thanks Ryan Gregg for making the changes to the documentation.