Closed lockelost closed 4 years ago
Thank you for your contribution to OneDrive API Docs. We will be triaging your incoming issue as soon as possible.
Thanks for your feedback. The OneDrive API currently does not support working with OneNote content in the way that you describe. Could you please propose an enhancement via the OneDrive Developer Platform UserVoice at http://aka.ms/od-dev-uservoice? Thanks!
Thanks @chackman but I don't think this is 'enhancement' but rather it's 'bug fix'. Sovereign networks like China cloud doesn't even support OneNote API. Yet you can create OneNote contents and manipulate them on OneDrive web site, you can not do the same with OneDrive API.
Anyway, I posted a suggestion there, but I don't think anybody will look at it.
This issue has been automatically marked as stale because it has marked as answered but has not had any activity for 10 days. It will be closed if no further activity occurs within 10 days of this comment. Thank you for your contributions to OneDrive API Docs!
In the case of the OneDrive business, it synchs the OneNote contents under 'Notebooks' folder on OneDrive storage.
With the RET API we can get all the information about this special type of item which works like a folder. And we can download all the files (.one, .toc) inside.
But if we want to 'restore' the contents we just downloaded, we can not create this kind of OneNote sync item.
If we create the normal folder under the 'Notebooks' folder and upload the files under the folder we just created, it will mess up the OneNote API to return an Error.
We can call OneNote API to create this kind of special folder, which is Notebook in OneNote API's view, and if we upload the files inside, it works all right.
But the problem with that approach is that the OneDrive webpage provides the 'Copy To' button for OneNote item there, and if you click on it, it will generate a new OneNote notebook also on the OneNote website. The problem is that you can specify other Folders on OneDrive storage, no matter how many depths it is.
Because OneDrive does not provide an API option to create this kind of 'OneNote synch' item, In case if you want to restore the OneNote notebook item you have to call this API to create a new Notebook.
But because you can not specify the 'path' to where in the OneDrive's storage, it will always create one inside the OneDrive's 'Notebooks' folder. So you can not restore properly the Notebook files that were in some other folder location on OneDrive storage.
Maybe you guys can simply make this API to have the additional option what type of the Folder we want to create? just a normal folder or OneNote sync item.
Basically, you guys enabled the Synch between OneNote and OneDrive and provided the OneDrive API to get all the information of them, but did not provide the API to create that only one specific type. So asking the API consumers to call different API does not make sense. If it takes time, please revise OneNote API to work properly, or disable the synch & copy-to features till your APIs get ready.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.