onenote

Send Email with all new OneNote entries

﹥>﹥吖頭↗ 提交于 2020-01-06 05:28:27
问题 I use Microsoft OneNote daily to take notes. I would like to write a script to send myself an email every night with all the new notes I took that day across notebooks so I can review them. This would usually be straightforward in e.g. a Word doc where I can timestamp all saves and take the latest file, diff it with the last file from the previous day and send the diff. Unfortunately OneNote complicates this for at least two reasons: OneNote autosaves and as far as I can tell does not offer

OneNote body is not sent when using non-multipart REST

我怕爱的太早我们不能终老 提交于 2020-01-05 15:11:13
问题 I'm having some issues when I try to create a note using OneNote REST API. This happens in my application and also when I try to use for testing purpose the apigee tool: https://apigee.com/onenote/embed/console/onenote After some tests, i've tested the example available on OneNote documentation: http://msdn.microsoft.com/en-us/library/office/dn575438(v=office.15).aspx#sectionSection3 On apigee, I have the following parameters: Method: POST Header: Content-Type: text/html and the corresponding

OneNote VSTO gone?

好久不见. 提交于 2020-01-01 00:43:13
问题 I want to create a project related to OneNote add-on, however when I check into project templates I did not see a project template for OneNote 2013 Add-on. Is there a way I could develop an add-on for OneNote since Microsoft removed it from VSTO? 回答1: VSTO does not support creating addins for OneNote. You can crate an addin for OneNote in a slightly different way though. You need to implement the IRibbonExtensibility interface as noted here. 回答2: This is very helpful tutorial for anyone

OneNote 2010 Add-In load problem

ⅰ亾dé卋堺 提交于 2019-12-25 04:33:39
问题 Googled out- could use some help here. I followed this excellent tutorial here (http://www.malteahrens.com/#/blog/howto-onenote-dev/) and have created my own onenote 2010 addin, but I am having trouble getting it to STAY in onenote. On first install of the addin, I open onenote and the addin is loaded just fine (registry shows load behavior 3). I close onenote and then simply open it again and my addin is unloaded. Onenote (options-addins-manage com addins) shows there was a load error with

Onenote API (REST) - PATCH append - “must include a 'commands'” error when Commands is already supplied (?!)

血红的双手。 提交于 2019-12-24 14:26:59
问题 Note: I'm pretty sure nothing's wrong with the PATCH query, I had it working before with 'Content-type':'application/json' and a constructed json file: [ { 'target':'|TARGET_ID|', 'action':'append', 'content':'|HTML|' } ] For the purposes of this, the header supplied (authentication bearer is correct and will be omitted) 'Content-type':'multipart/form-data; Boundary=sectionboundary' (note: Boundary=sectionboundary is in the same line) Attempting to pass the following body as a PATCH to https:

How do I construct typed constants for the OneNote COM API in python?

瘦欲@ 提交于 2019-12-24 14:11:56
问题 I want to use the UpdatePageContent COM method documentation via the python win32com module. Things I can do so far include getting the hierarchy, getting page contents, etc. I can even validly manipulate the XML to prepare changes (tested using the MATLAB COM interface). This is a minimal example of what I am trying to do: import win32com from bs4 import BeautifulSoup oneNoteApp = win32com.client.Dispatch('OneNote.Application') pageID = '{603BD3F0-4DAB-4E5B-8E28-28CA0F2B0C83}{1}{B0}' # from

How to create OneNote 2010 section

淺唱寂寞╮ 提交于 2019-12-24 08:24:59
问题 How can you create a new section in a OneNote 2010 notebook with c#? According to the API there is no method to do so. But there is a CreateNewPage Method so I wondering if there is something similiar for sections? If not, how can this be achieved except for manipulating the XML files (which is a task i'd like to avoid since I'm not experienced in it)? 回答1: Here is code snippet from my add on: public bool AddNewSection(string SectionTitle, out string newSectionId) { try { string CurrParentId;

Some (valid) tags not being returned [OutlineGroupNode is not supported ]

你说的曾经没有我的故事 提交于 2019-12-24 06:17:09
问题 The OneNote API is not returning supported tags in some lists. It seems to be an issue with complex bulleted lists; we just see OutlineGroupNode is not supported in the returned markup. The docs give some guidelines on how to write out tags to lists, but there's no mention of the API not returning any supported tags in certain situations. Please see the below example, what rules is this list breaking? What constitutes an OutlineGroupNode? Some clarity over what pre-existing list/tag content

Replace operation breaks a nested list in OneNote (Graph API)

自作多情 提交于 2019-12-24 00:08:51
问题 User organizes his todos in OneNote as nested list which looks like this: user's page I need to mark "Task A" as completed. According to a documentation I should perform replace action for todo. First I call GET /me/onenote/pages/{pageId}/content?includeIDs=true to find right id of todo "Task A" (see "Page content before the PATCH" ⇩). Then I send PATCH /me/onenote/pages/{pageId}/content with body: [ { "action": "replace", "target": "p:{33109592-eab9-44fa-8cec-867ab11cecfd}{55}", "content": "

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

a 夏天 提交于 2019-12-23 02:47:13
问题 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