The OneNote API is used to interact with Microsoft OneNote programmatically.
Questions tagged [onenote-api]
329 questions
3
votes
1 answer
Microsoft one note graph api doesn't include recently created pages
The '/onenote/sections/{sectionId}/pages' endpoint doesn't return recently created pages. It used to work without issues. Since the past few days, it isn't returning newly created pages. Does anyone know how to fix this…

Ajay Ullal
- 378
- 2
- 10
3
votes
0 answers
OneNote API /pages endpoint not working properly
Summary
In my pursuit of getting up to date information about my most recently modified OneNote pages via the REST API, I conducted a short experiment where I created a new Outlook ID; created OneNote notebooks, sections, and pages using both…

Keshov Sharma
- 121
- 5
3
votes
0 answers
OneNote nested list issues when creating page from PowerApps
I'm trying to create a simple OneNote page with the nested unordered list from PowerApps. The code is:
'OneNote(Business)'.CreatePageInSection(
SelectedNoteBook.Key,
SelectedSection.pagesUrl,
"

Andrey.Dankevich
- 489
- 5
- 11
3
votes
3 answers
Microsoft Graph OneNote Patch API removes images after Patch
I am replacing a table content in a OneNote Page by using the PATCH API. In order to do so, I call content API with includeIds option.
Following is an example…

Deepak Sharma
- 1,873
- 10
- 23
3
votes
0 answers
Microsoft graph onenote content api returning contents by replacing
with [obj] character
I am creating a OneNote page with OneNote api with some HTML which has a html line break(br) character. Following a simple trimmed version of the HTML used to create the one note page.
Test Page
…

Deepak Sharma
- 1,873
- 10
- 23
3
votes
1 answer
how to find OneNote Notebook object from driveItem with MS Graph?
When a OneNote Notebook is created in OneDrive, Microsoft shows a DriveItem with a package facet and type of oneNote. This is exactly per documentation. The driveItem appears to be a link/reference to the actual Notebook - which is stored in a…

AWeber
- 381
- 1
- 3
- 14
3
votes
2 answers
On throttling time to wait is not returned
I am using Microsoft Graph for OneNote. I have observed few issues with these endpoints. Sometimes when API's are called concurrently a throttling exception is thrown (HTTP 429). And suddenly next API call returns successful response.
As per…

Pooja Dhannawat
- 263
- 2
- 8
3
votes
2 answers
How to access shared content using OneNote api
I am integrating OneNote in my application. Using the OneNote API I am able to fetch all the Notebooks that belong to a particular user.
Let's say a user A has 5 Notebooks of his own and 2 shared Notebooks.
Let's say NoteBook6 is shared by user…

Pooja Dhannawat
- 263
- 2
- 8
3
votes
1 answer
OneNote Add in: Getting HTML content
In the example, code is provided to get RichText. It is able to get the plain text content of the page, but I cannot seem to get it to return the HTML formatted content of the page.
For example:
Header:
A
B
should be:
Header:
-
…

Diode Dan
- 4,801
- 6
- 25
- 34
3
votes
1 answer
OutlineGroupNode is not supported
This list:
gets returned as this from the api:
What is the definition of an OutlineGroup?

Darren Beale
- 753
- 1
- 9
- 24
3
votes
1 answer
Relating PAGEID to sectionid-PageID in hyperlink
We have many pages which have link to other OneNote Pages. Section-ID and Page ID in the hyper link is different from the paged returned by the URL.
Example: For Page-ID: 1-422f7679a4e647f29bf990e2d7011caa!1-7028fe47-2ab9-4568-b5f9-fdc5f035eed1 …

Karthick Pk
- 83
- 5
3
votes
2 answers
How to debug win32com call in python
In order to collect output from a logging script, I would like to use onepy to add information to a OneNote 2013 notebook. Unfortunately, the method update_page_content() provided by onepy doesn't work for me. To get a deeper understanding of the…

ranguwud
- 285
- 3
- 12
2
votes
0 answers
OneNote 2016 Add-In Options
I've been looking into options to extend some functionality within OneNote via code. I've found references to Comm Add-Ins and Node.Js Add-Ins. I went with the Node.Js route, but I can't figure out how to add the Add-In in to OneNote. It seems like…

Fly Dangerous o7
- 91
- 5
2
votes
1 answer
How do I read OneNote indented paragraphs using OneNote Javascript APIs?
I have a notebook that contains these
The docs for OneNote APIs are here (paragraph class selected already)
https://learn.microsoft.com/en-us/javascript/api/onenote/onenote.paragraph?view=onenote-js-1.1
If I run this code:
export async function…

MiniMe
- 1,057
- 4
- 22
- 47
2
votes
0 answers
What is the reason why the OneNote APIs won't return all the pages in a notebook?
I am reading around here and I am seeing multiple messages about the /pages endpoint that is not working a expected
It seems that the OneNote APIs (MS Graph or Office365) are not returning all the pages that the user can see. In particular recent…

MiniMe
- 1,057
- 4
- 22
- 47