We have logged your requirement with ID “NOTEJAVA-560” for further investigation. You will automatically be informed here once we have more information to share.
We have investigated and found that every OneNote file has unique GUID according to specification, but this is not true in the case of Pages. The pages have no any unique GUIDs defined. Howerver, Document.getGuid() method returns the GUID for file.
We have analyzed the Microsoft Graph API for OneNote purpose. When we retrieve page details, graph API is returning a GUID. I’m not sure how they are generating this GUID if it is not available. When i checked their documentation I found that some attributes exist as below for a page node. Is it possible to expose these attributes via API ?
As we already evaluated and told, every OneNote file has unique guid according to the specifications. But there is no such guid available for Page object. We found Pages have no unique guids in the OneNote document file format.
Could you share more details, sample documents, screenshots and other references on how did you get GUIDs for Page, we will check it soon.
Thanks for quick reply. Here is the screenshot for the same. I have tried in Microsoft graph explorer itself. Let me know if you need any further information.
We evaluated Microsoft Graph API. We found Microsoft Graph API assigns unique GUID to each page and provides API to retrieve this GUID and work via REST API with Page object using this GUID.
When Page object is stored to *.one file, it is also assigned a GUID but Page GUID in Microsoft Graph API has different format than GUID in *.one file, i.e., they are not consistent. Also there is no references mentioned in documentation that GUID values used in Microsoft Graph API are related in some way to GUID values stored in *.one files for the same objects.
We are sorry but at the moment we don’t support Microsoft Graph API and cannot provide GUID appropriate to use within this service.
Since we don’t support Microsoft Graph API and cannot provide your desired GUID. Anyways, we will still check/investigate if this (provide the id attribute as mentioned in the below(in bold)) can be feasible enough to be supported.
Once we have any new information, we will share it with you.
Our application needs to download only the incremental changes of a section rather than downloading entire section file (.one). Based on my understanding(it’s gut feeling) Graph is using this field to identify section or at least this would be unique in the section.
Another thing I observed is, there is no way to export/import a section. It would be great if this is available too.
I afraid that there is no any way to determine the correct section that you want the page to be created in, and you could take a try to create the API URL of the section and enter that into the field.