onenote

OneNote API - no HTTP Resource found?

落花浮王杯 提交于 2019-12-12 01:21:56
问题 I'm calling this endpoint https://graph.microsoft.com/beta/me/notes/ , and while the right user id was fetched, the below error occurs... Not sure what's going on at all, as this error is not documented: { error: { code: "UnknownError", message: "{ "Message": "No HTTP resource was found that matches the request URI 'https://www.onenote.com/api/beta/users('b2909c67-ab0e-45cf-a823-b0f945c22c00')/notes'." }", innerError: { request-id: "01b7d80f-aa04-463a-be58-c5a12414e243", date: "2016-02-27T07

OneNote, inserting elements with UpdatePageContent

情到浓时终转凉″ 提交于 2019-12-12 00:51:20
问题 I tried to find if it was possible to add content to a oneNote page via UpdatePageContent in the Microsoft.Office.Interop.OneNote reference. I want to create a page with a default template that I made in XML, but the documation of msdn said me that this function only allow the structure : msdn doc : The only objects that you must include in the XML code that you pass to the UpdatePageContent method are page-level objects (such as outlines, images on the page, or ink on the page) that have

How to create new NoteBook with OneNote API

倾然丶 夕夏残阳落幕 提交于 2019-12-11 19:53:51
问题 I'm getting a "Bad Request" error 400 when I try to create a new Notebook. Below is my code, I think it is the PagesEndPoint Uri but I have tried all combinations. I can use the apigee console app, but cannot detemine how to make a C# Windows app Post message. async public Task<StandardResponse> CreateNewNotebook(string newNotebookName) { Uri PagesEndPoint = new Uri("https://www.onenote.com/api/v1.0/notebooks?notebookName="+newNotebookName.ToString()); var client = new HttpClient(); client

How set onenote page as read only using onenote API

偶尔善良 提交于 2019-12-11 18:28:06
问题 I am using onenote graph API to create and update notebook,sections,pages. Know i want to make onenote page as read only using Onenote Graph API. Please suggest PATCH or POST Request url to set onenote page as read only 回答1: I think the only effective way of doing this is by creating a view only link to the Notebook. The OneNote API only allows this for section groups as described at "Create sharing links on OneNote entities" POST ../sectiongroups/{id}/GetOrCreateAnonymousSharingLink with {

OneNote COM Addin only loads manually

China☆狼群 提交于 2019-12-11 05:24:01
问题 I have been working on a COM add-in for OneNote based on the tutorial at http://www.malteahrens.com/#/blog/howto-onenote-dev/ and http://support.microsoft.com/kb/2555352. It builds fine, however, when I load OneNote, I have to manually go through to options to start the add in. It tells me a "runtime error occurred during the loading of the COM add-in." Once the add-in is loaded manually it works as it should. I've been searching around on the internet for a while without much luck. I have

Accessing shared notebooks pages and sections for Onenote for business acoount

时光怂恿深爱的人放手 提交于 2019-12-11 04:14:52
问题 I am integration onenote with my application. I am using below mentioned API to retrieve all notebooks that a user can potentially access to. https://graph.microsoft.com/v1.0/me/onenote/notebooks?includesharednotebooks=true I am able to retrieve all the notebooks owned by me and shared with me. The problem is in case on business account I am not able to further access the pages and sections which are inside shared notebooks. For all owned notebooks I can still access the pages and sections.

Microsoft Office OneNote C++ APIs?

房东的猫 提交于 2019-12-11 02:39:03
问题 I was looking into modifying Microsoft Office OneNote contents via c++ programming. Specifically at using Quick Filing Dialog Box Interfaces. But all the examples available in there are for C#, I want to know whether API for C++ is available, if so where can I start to learn them. I just wanted to use that dialog box get the OneNote section and insert my content as a page in that section. 回答1: As Daniel Escapa writes: Open Visual Studio and create a new C++ project. For my example I am

How to make autohotkey work in “OneNote for Windows 10” app (not OneNote)?

倾然丶 夕夏残阳落幕 提交于 2019-12-09 22:06:07
问题 I am trying to add a program specific shortcut, i.e. a shortcut to be used inside OneNote App only, and not the short cut for the opening of app itself. Here is how the present script is: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting

Error “request too large (413)” when trying to upload a PDF file to OneNote

℡╲_俬逩灬. 提交于 2019-12-08 15:22:36
I'm trying to create new pages in OneNote using Microsoft Graph REST API (Objective-C). Those new pages should contain a PDF document as an attachment. The POST operations succeed with PDF files that are under ~4MB. However, the operations for files that are over 4MB fail with the error message request too large (413) and the following response: { "error": { "code": "BadRequest", "message": "Maximum request length exceeded.", "innerError": { "request-id": "269c663c-9289-47cc-a833-d471b7b867f6", "date": "2019-04-09T09:35:49" } } } The end point that is used is: https://graph.microsoft.com/v1.0

How to Use Python to Send a Multipart PDF Request to OneNote

蹲街弑〆低调 提交于 2019-12-08 08:02:31
I'm trying to upload a PDF to OneNote using Python. According to the OneNote API, I need to post a request like this: Content-Type:multipart/form-data; boundary=MyAppPartBoundary Authorization:bearer tokenString --MyAppPartBoundary Content-Disposition:form-data; name="Presentation" Content-type:text/html <!DOCTYPE html> <html> <head> <title>A page with an embedded and displayed PDF file</title> </head> <body> <p>Attached is the lease agreement for the expanded offices!</p> <object data-attachment="OfficeLease.pdf" data="name:OfficeLeasePartName" type="application/pdf" /> <p>Here's the contents