The OneNote API is used to interact with Microsoft OneNote programmatically.
Questions tagged [onenote-api]
329 questions
0
votes
1 answer
Is migration needed from "old" onenote API to new microsoft graph api?
I've build a Java library to get the interaction of java application with Microsoft Onenote.
I recently discovered that the API has changed:
For getting a specific Sectionthe url…

lvr123
- 524
- 6
- 24
0
votes
1 answer
Get the currently highlighted text in a OneNote Document
When building a word add in I can use
var selectedRange = context.document.getSelection();
To get the currently selected text, is this possible with Onenote addins?

RobPethi
- 551
- 9
- 27
0
votes
2 answers
Updating Created Date in OneNote page with PATCH
Using Microsoft Graph, body, title, etc. seem easy to update, but I can't seem to figure out the right syntax for created date. I'm making a copy of a current page (only way to get lined pages, it seems) and want the created date to reflect when the…

coopermj
- 531
- 4
- 16
0
votes
2 answers
How do I retrieve the content of a OneNote page using the Microsoft Graph .NET SDK?
I'm swapping out my usage of the old OneDrive SDK to programmatically access the contents of OneNote in a UWP app, and I've begun using the Microsoft Graph for .NET SDK. One of the things I need to do is get a specific page's content. Currently, I'm…

PingZing
- 942
- 5
- 20
0
votes
2 answers
page: copyToSection failing with error code 19999 with both OneNote and Microsoft graph APIs
This occurs now consistently on the two tenants I have access to.
POST .../v1.0/me/onenote/pages/{id}/copyToSection
{
"id": "id-value",
"groupId": "groupId-value"
}
With the initial response of 202, "status":"not started"
X-CorrelationId:…

codeye
- 607
- 3
- 10
0
votes
1 answer
How to subscribe to webhook notifications for OneNote Business using Graph API
While the Graph API supports webhook updates to Business OneDrive "driveItems" and OneNote notebooks are driveItems, we are only getting notifications from our personal OneDrive account.
We subscribed for webhooks on Business OneDrive account and…

Anupam Baldi
- 31
- 6
0
votes
0 answers
Programatically send a copy of a local file system notebook to Onedrive Onenote
Locally, I have several OneNote notebooks in the OneNote 2007 format. For reasons out of scope it is difficult to convert them to the new format first.
I want to be able to send a copy of the notebook to OneNote Online so that I can read-only it…

Peter pete
- 704
- 1
- 7
- 17
0
votes
1 answer
What is the Sharepoint Document Location endpoint really returning?
I'm trying to get the OneNote notebook information that is linked to my organization's CRM accounts. Each account has a OneNote book created for it that can be accessed inside of CRM.
From what I understand, I can use the SharePointDocumentLocation…

Thomas
- 35
- 2
- 8
0
votes
1 answer
Is there any to get user unique identity after authentication process of MS Graph API?
Currently, I am using the Microsoft OneNote API (REST) to read the content of OneNote Pages. I have already subscribed for the notifications on the event of any changes happens in any page's content. Microsoft so sends me a notification for every…

Anupam Baldi
- 31
- 6
0
votes
1 answer
How to fix error: "The URI segment 'notebooks' is invalid after the segment 'notes'"
I'm trying to get information about a OneNote notebook that is stored in CRM. Using the CRM api, I can fetch OneNote notebook ids, which I should be able to send to the OneNote api to get its contents. However, when I send a request I get the error:…

Thomas
- 35
- 2
- 8
0
votes
1 answer
Can't get sections in OneNote shared notebook
Using the OneNote API (via PHP and cURL) I can get the data for a shared notebook (not all data shown here):
"id": "1-ff693481-8376-40a5-936a-1d94aaf0acc5",
"self":…

Velojet
- 878
- 11
- 18
0
votes
1 answer
onenote snapshot intranet webpage
Is it possible to take a webpage snapshot of a non-public facing website (intranet) using the OneNote API?
I'm using the OneNote API to create OneNote notebooks, pages and sections. It's working well. Unfortunately, when I use data-render-src and…

DeanB_Develop
- 2,107
- 3
- 23
- 37
0
votes
1 answer
Replace operation breaks images in table OneNote (Graph API)
I have todo inside table. Also table contains image. Page screenshot
I need to mark "A" as completed. According to a documentation I should perform replace action for whole table.
First I call GET /me/onenote/pages/{pageId}/content?includeIDs=true…

Anatoliy Skuratov
- 43
- 5
0
votes
1 answer
Unable to make two changes in OneNote page
I need to complete todos in user's page via MS Graph API. If todos are in a list, after replace operation for the todo the list becomes broken. Luckily, I found a hack to complete todo without breaking the list: Working with OneNote Page Content via…

Denis Zavershinskiy
- 144
- 1
- 11
0
votes
0 answers
Onenote Single Notebook Access
We use onenote api's to access user's onenote notebooks and sync to our system.
When we do oauth for the first time, we get options like 'office.onenote_update_by_app' which allow us to create / edit pages in any of the user notebook and read only…

keshav
- 734
- 6
- 19