Questions tagged [onenote-api]

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

329 questions
0
votes
1 answer

Way to get detailed listing of all Pages properties in OneNote?

I have the latest OneNote on Windows 10. I'm trying to create a list of all my Pages in all the Notebooks. One line per Page, showing it's Name, Section and Notebook plus created date. As it's for import into (say) excel, be nice to have it…
dwids
  • 67
  • 2
  • 7
0
votes
2 answers

How to get OneNote Notebook/Section/Page Id from Teams Tab

I have embedded a OneNote notebook into a Microsoft Teams Tab. I am trying to get the Notebook Id using Graphi API I can get the tab id from channels/{{ChannelId}}/messages/delta end point. Using tabId, I can get tab details from…
0
votes
1 answer

What is the flow to Create an application in Azure app directory to automate onenote?

I have registered an app in the Azure active drirectory for using graph api for the one note automation. My question is the app registration what value I should give for redirect uri, to automate onenote. Can someone summarise the next steps to…
0
votes
1 answer

How can I copy a OneNote image to another OneNote page using the MS Graph API?

I need to copy images between OneNote pages, using a patch request. How can I do this with the MS Graph API?
Freewalker
  • 6,329
  • 4
  • 51
  • 70
0
votes
1 answer

How do MS-graph OneNote page IDs map to OneNote app link page IDs?

In the MS Graph API the page IDs are in a form like this: 0-27696e96063a344f89a7735214aaa999!1-A0AC2C4AD3AAA999!34000 The second part is the MS Graph section ID. However OneNote page links (e.g. online, or copied from the app) use UUIDs as page…
0
votes
1 answer

How to chage absolute position of an onenote elemente with microsoft graph

I'm trying to change the absolute position of a OneNote div without success. I can create the full body with an absoluted positioned div: This is my request: [ { 'target':'body', 'action':'replace', 'content':'
0
votes
1 answer

Graph API OneNote: Create section with page content

I have a requirement where I need to download the OneNote notebook and upload it again on demand. I am using Graph API (DriveItem API) to track changes in the OneNote notebook and download it. Now when I download it I an see that for section and…
0
votes
0 answers

Qt ActiveX and OneNote (desktop 2016 32bit)

Trying to export student exam results from excel to Student OneNote pages. importing the excel data using QAxObject dynamic calls works flawlessly however a similar setup with OneNote yeilds unkown getHieracrchy Documentation below is the output of…
ArchNemSyS
  • 367
  • 2
  • 4
  • 17
0
votes
1 answer

Onenote notebook, sections and page IDs permanent?

I'm using the API here: https://learn.microsoft.com/en-us/graph/onenote-get-content#resource-paths-for-get-requests to get and write information to pages. I was wondering if anybody knows whether the IDs retrieved through the API changes. I found…
jason
  • 3,811
  • 18
  • 92
  • 147
0
votes
0 answers

Cannot get image content from OneNoteAPI

I am trying to display page content of my OneNote's page using Angular Web. Although I can get the other contents, I cannot get images from OneNote page. Here is the code that I am using for getting page content and the error. public async…
Hasini
  • 327
  • 4
  • 19
0
votes
1 answer

OneNote error creating a page in Laravel using Microsoft Graph

i'm using Microsoft Graph in my Laravel application. It works perfectly adding events to the user's calendar, getting events, creating OneNote's notebook. The problem occurs when i try to add a page, i'm getting the next error: The code i'm using…
Kashorako
  • 53
  • 1
  • 9
0
votes
1 answer

How to get position of inkml data from OneNote API?

I am able to retrieve a page with inkML data from OneNote API as described here: https://developer.microsoft.com/en-us/onenote/blogs/onenote-ink-beta-apis/ When the page is retrieved via the api (page data and inkML data). How do I know the X, Y…
0
votes
1 answer

OneNote JavaScript API access element

I have tried to create my first One Note Add In using the JavaScript API. I have tried the example in the MS documentaion (Build your first OneNote task pane add-in). This one works. Now I want to try to change the formatting of an element in the…
0
votes
1 answer

Patch page with python requests throws "request's JSON invalid" - MS OneNote API

i want to update an OneNote page with MS Graph but i get the following error: { "error": { "code": "20109", "message": "The request's JSON was invalid or could not be parsed.", "innerError": { "date": "2020-11-17T07:22:13", …
kenoc1
  • 52
  • 5
0
votes
0 answers

OneNote Add-in Development: How to navigate to certain page without getting stuck?

I am writing an add-in for OneNote with c#. It’s function is to navigate to certain page when double-click a node in treeview, which exhibits the structure of OneNote Notebook-Section-Pages hierarchy. This is what I do: private void…
Valuex
  • 104
  • 1
  • 10