Questions tagged [onenote-api]

The OneNote API is used to interact with Microsoft OneNote programmatically.

329 questions
0
votes
1 answer

How to retrieve pages filtered by a tag from OneNote API?

Some of my pages have a OneNote Tag in it https://learn.microsoft.com/en-us/graph/onenote-note-tags I would like to retrieve only pages that contain a specific tag from a notebook. Currently, I would need to Get all the sections from a notebook Get…
0
votes
1 answer

Microsoft Graph API - OneNote - Create Page Issue - System.IO.Stream.get_ReadTimeout()

Tried Graph API directly for creating page, Is it the right way/possible or else we should use only HttpClient to create page. Also I couldn't see C# code example for create page under…
erdarun
  • 441
  • 1
  • 8
  • 14
0
votes
2 answers

How to get authProvider for OneNote API

I'm using MS.Graph and trying to get a list of my OneNote Notebooks. Here is the code I'm using. IConfidentialClientApplication confidentialClientApplication =…
Trey Balut
  • 1,355
  • 3
  • 19
  • 39
0
votes
1 answer

Trying to update a OneNote page using Python, requests and MS Graph API results in "Unknown error"

Not sure what I am doing wrong here I am trying to use a Python script to update a OneNote page that I can retrieve just fine I am using a device authentication flow and the scopes send when I am getting the token are these scopes=[ …
MiniMe
  • 1,057
  • 4
  • 22
  • 47
0
votes
1 answer

Microsoft Graph API OneNote pages content BadRequest

I am using OneNote /content endpoint to retrieve page content as described here: https://learn.microsoft.com/en-us/graph/api/page-get?view=graph-rest-1.0 However, calling GET on /me/onenote/pages/{id}/content[?includeIDs=true] returns me this: { …
HelmBurger
  • 1,168
  • 5
  • 15
  • 35
0
votes
3 answers

Unable to render OneNote image resource after appending preAuthenticated=true option in OneNote api call

https://github.com/microsoftgraph/microsoft-graph-docs/issues/2624 I am experience the issue as the above. I am trying to save the content of a page with a reference to an image by calling…
0
votes
1 answer

Nested Section Group with One Note Javascript API

I notice that in One Note Web, you cannot nest a section group within a section group like this: Sports (Section Group) Basketball (Section Group) Teams (Section Group) Toronto Raptors (Section) Raptors…
Ben Wong
  • 691
  • 2
  • 19
  • 29
0
votes
1 answer

CoercionType doesn't support Image for Excel web add-in

For office js API, based on this link, Office.CoercionType.Image should be supported in Excel. But I find Office.CoercionType.Image is undefined in Excel Online. Only Text, Matrix, and Table have values. BTW, it seems that OneNote also supports…
Audrey
  • 101
  • 3
0
votes
1 answer

Error deleting a student from onenote classnotebook using API

I am trying to delete a student from a OneNote classnote book using the microsoft onenote API, but getting the following error. {'error': {'code': '19999', 'message': 'Something failed, the API cannot share any more information at the time of the…
Mark Waller
  • 179
  • 1
  • 8
0
votes
0 answers

Issues downloading picture to local system using OneNote API

I'm trying to write a program that dowloads OneNote pages to my pc, including files in the pages. I'm stuck on the downloading images from the pages. I make a GET request and get the binary data for the image just fine, when I save it and try to…
0
votes
1 answer

Get OneNote timestamps through the API

Is there a way to get the timestamps for content in a OneNote page through the OneNote API, or another way? I have been using the API to get the html content and metadata of my pages, however I have not found a way to get the timestamps. I want to…
dwr39
  • 31
  • 1
0
votes
2 answers

OneNote api fails with code 20258. graphClient.Users[userPrincipalName].Onenote.Pages.Request()

One customer reported OneNote business backup failure, and here's the message. Code: 20258 Message: Sync of this section is not supported. Detailed error information: Getting Section What does that code mean? Is it related to AzureApp…
Locke
  • 315
  • 1
  • 3
  • 14
0
votes
1 answer

Is it necessary to have business account for use OneNote API

I am developing an application using Microsoft Graph and I am testing some basic features with OneNote. I can use the users, but I'm getting errors regarding SharePoint licenses when it comes to OneNote. Error that i am receiving: { "error": { …
0
votes
1 answer

OneNote now requires Notes.ReadWrite.All,Notes.Read.All permission

I have been backing up and restoring the OneNote pages by using Graph API no problem with 'Directory.Read.All''Sites.ReadWrite.All''User.Read.All' permissions. But recently customer have reported this error message. 40004 Message: The OAuth token…
Locke
  • 315
  • 1
  • 3
  • 14
0
votes
2 answers

PowerShell script/command to export OneNote page names + URLs to JSON

For all OneNote notebooks that are syncing to my Win10 PC, how can I use PowerShell to generate a .json file that contains an array of objects, where each object contains: Notebook Name Section Name Page Name Page URL, using the onenote:…
LaVache
  • 2,372
  • 3
  • 24
  • 38