onenotemicrosoft-graph-onenote

OneNote deeplink to pages


I am trying to get deep links to the different pages within a section of a OneNote Notebook using graph API. I do see that the graph API treats the OneNote Notebook shared in a SharePoint as a folder and the different sections of it as file types. Is there a way to generate the deep links dynamically or have them through Odata param? If not what are the options I have?


Solution

  • I think you need to start with getnotebookfromweburl and then from the body retrieved use id and web url to construct the deeplink.

    This page might contain more information: https://learn.microsoft.com/en-us/graph/onenote-get-content#notebook-entity