So, what I would like to do is to programmatically create a link to share with my colleagues in an email message, which allows them to open a OneNote page directly in the App. I was able to figure out that my link is going to be something like:
onenote://base-path ...
but I'm not getting how to build the base-path link, I'm able to have all the necessary page details (I guess) from an API call. can anybody please tell me how to build a link for opening a OneNote page directly in app?
Thanks
You can use the GET Pages endpoint in the REST API to retrieve information about a specific page. The response will include a
links
field which contains a URL that will open that page in the OneNote client (if its available).Here is an example response:
This example was taken from: https://dev.onenote.com/docs#/reference/get-pages/v10menotespagesfilterorderbyselectexpandtopskipsearchcount/get
I hope this helps!