Note not providing web URL via Graph??

Matt Yette 0 Reputation points
2024-02-23T14:56:53.1566667+00:00

I am currently working with Graph to query my company's OneNote content via the API. I want to be able to collect the webURL address for any given note I query. However, under the 'links' segment of the data returned, I simply get the base URL for onenote when querying either the section to list all pages, or the page itself:

- https://graph.microsoft.com/v1.0/sites/{site-id}/onenote/sections/1-0003e5c3-9487-435c-9f3d-ae2fb49897fe/pages

This seems to be a bug; these fields are populated for sections, but for notes, are just these generic URLs,

"links": {
                "oneNoteClientUrl": {
                    "href": "https://www.onenote.com/notebooks"
                },
                "oneNoteWebUrl": {
                    "href": "https://www.onenote.com/notebooks"
                }
            },

OneNote
OneNote
A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.
177 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,269 questions
0 comments No comments
{count} votes