Documentation clarification for using DriveItem delta endpoint to download SharePoint Document library files #2921
Unanswered
Ralph Jansen (LockTar)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to download all the files in a SharePoint Document library. Then every day, I'm trying to download the delta of the Document library. So, a sync process.
I'm writing it in C# using the Microsoft Graph SDK.
I think the best way to do this, is using the Delta endpoints of the Microsoft Graph.
Because we are downloading files from a Document Library, I think we can best use the DriveItem delta endpoint.
Questions
The result of the API calls is a bit strange and unclear for me so I'm trying to understand and get confirmation about what the docs are saying.
The same item may appear more than once in a delta feed, for various reasons. You should use the last occurrence you see.. Does this mean, that I need to do aLastbased on theIdfield? So you get 4 of the same items (ids) and then do last and only process that one?Where(x => x.File != null)? What If a folder is deleted? Do I get a delete object for all the files in the folder?What I did
The logic of the downloader is doing this:
Getting a sample for driveitem delta endpoint just like the sample for users would be nice!
Andrew Omondi (@andrueastman) since I saw many related issues about driveitem delta endpoint answered by you. Do you have any idea? Thanks!
All reactions