I'm using the .NET SDK of Microsoft Graph to retrieve all notebooks owned by any given user.
I attempt to retrieve OneNote sections in a user's notebook with the following code:
sections = await graphClient
.Users[userID]
.Onenote
.Notebooks[notebookId]
.Sections
.Request()
.GetAsync();
Some users have OneDrive's with more than 5,000 files, and this triggers a ServiceException
with Error Code 10008
. My understanding is that this 5,000 limitation is to do with limitations on queries over OneDrive API's and as long as queries are paged, I should be able to retrieve the information.
So, my question is, how would I write a query, to get the sections, when I know the notebookId/userId?
I do not mind falling back on using the REST api instead of the SDK if necessary.