office-js

Can't get most email headers in Outlook Addin API

会有一股神秘感。 提交于 2019-12-04 22:32:16
I'm trying to get all email headers from a selected Outlook email while inside an Outlook Addin. I've found the Preview API that should allow me to get the headers. This is what I have tried as of now Office.initialize = (reason) => { headerNames = ["Received-SPF"] Office.context.mailbox.item.internetHeaders.getAsync(headerNames, print); } print(asyncResult) { console.log(asyncResult.value); } The problem is when I start to put more headers, the API doesn't return them. The only ones I get are Received-SPF, DKIM-Signature and Authentication-Results. All other headers (Received, To, X-Microsoft

How to create new tab with buttons in word 2016

喜欢而已 提交于 2019-12-04 22:05:06
I am new to office 365. I have developed one taskpane add in (testaddin) for word 2016 using javacript api. In word 2016, I want to create new tab (testtab) and add a button to it . On clicking that button, i need to display my testaddin in taskpane. I have got sample manifest file here. https://github.com/OfficeDev/Office-Add-in-Commands-Samples/tree/master/Word . After downloading files where to place the manifest file. I already have one shared directory which contains my testaddin manifest file and its loading in taskpane. Any help will be really appreciated. The manifest you refer from

Office outlook web(AddIn) dowloand message file

心已入冬 提交于 2019-12-04 21:07:03
Hei Iam developing Outlook web addIn in which i want to access all the data of email ,Senderemail, receipent email ,subject and sent date etc. I also want to download the entire message file .I have found one outlook web REST api https://msdn.microsoft.com/en-us/office/office365/api/mail-rest-operations#GetMessage but dont know how to use it. Anyone has experience with that ? If anyone can share any example it would be helpful Thanks 1 . To get the message details you can use the javascript APIs available in office.js. Refer the link for details on individual APIs that are available on an item

Error while executing async get of Outlook item property

血红的双手。 提交于 2019-12-04 20:50:56
Why am I getting Could not complete the operation due to error 80043200 sometimes while getting Outlook item property (for example, Subject) in email Compose mode? Call stack: Error at n.prototype.execute (appsforoffice.microsoft.com/lib/1.1/hosted/outlook-win32-16.02.js:11:86635) at u.DDA.OutlookAppOm.prototype.callOutlookDispatcher (appsforoffice.microsoft.com/lib/1.1/hosted/outlook-win32-16.02.js:11:150300) at u.DDA.OutlookAppOm.prototype.invokeHostMethod (appsforoffice.microsoft.com/lib/1.1/hosted/outlook-win32-16.02.js:11:150169) at u.DDA.OutlookAppOm.prototype._standardInvokeHostMethod$i

Add excel custom functions to an existing excel add-in - Javascript Api

筅森魡賤 提交于 2019-12-04 20:40:50
I have an existing excel add-in with UI (using react) and I would like to add some custom functions to it. When I add the add-ins in separate both work fine but when I try to merge them the custom functions don't appear. I assume that my issue is on the manifest but I'm not sure what is it: I added the custom functions extension point, added the custom functions bit to the resources Urls and ShortStrings and replaced the html source location of the cf to be the task pane html. Here is my manifest: <?xml version="1.0" encoding="UTF-8"?> <OfficeApp xmlns="http://schemas.microsoft.com/office

No event is fired when closing a dialog via ESC

一个人想着一个人 提交于 2019-12-04 19:31:48
This issue is occurring using Outlook Web App on OSX. It has been replicated using Chrome, Firefox, and Safari. Scenario UI.displayDialogAsync() is used with the displayInIframe: true option. If a user hits the ESC key, the dialog will close but not trigger Office.EventType.DialogEventReceived . On top of this, the same dialog can not be opened again (probably because somewhere an opened flag is still set to true or something). Expected Behavior The dialog closes and emits an event with error 12006 (dialog closed by user). Current Behavior The dialog closes, and does not emit anything and

How to check an Outlook custom property is available via Microsoft Graph

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 19:03:52
I added a custom property to an Event using an office.js add-in. I tried to get that custom property's value using https://graph.microsoft.com/v1.0/me/events/AQMkADU2OWFjYTF..AAAA==?singleValueExtendedProperties($filter=id eq 'String 00020329-0000-0000-C000-000000000046 myCusPropId ') but it is return an error: { "error": { "code": "ErrorInvalidProperty", "message": "PropertyId values may only be in one of the following formats: 'MapiPropertyType namespaceGuid Name propertyName', 'MapiPropertyType namespaceGuid Id propertyId' or 'MapiPropertyType propertyTag'.", "innerError": { "request-id":

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://outlook.office.com') does not match

风格不统一 提交于 2019-12-04 18:13:10
I am developing an add-in for Outlook. I am using the Dialog API . I get an error when using my adding in Outlook for the Web: Failed to execute postMessage on DOMWindow : The target origin provided ( https://outlook.office.com ) does not match the recipient window's origin ( https://myIp:port ) It appears when I call Office.context.ui.messageParent . Anyone faced the same problem and know the fix? 来源: https://stackoverflow.com/questions/49654404/failed-to-execute-postmessage-on-domwindow-the-target-origin-provided-htt

Office Add-in Outlook API attach document using displayNewMessageForm method issue

扶醉桌前 提交于 2019-12-04 17:48:16
I'm working on office Add-in for Outlook. Need to open a new message with a pre-defined attachment. Trying to get an attachment from the current item (message) as below: Office.context.mailbox.item.attachments Here is an output (i get attachment type, id, size and so on): Then I'm trying to attach this file to a new message in Outlook via add-in outlook API, here is an example from Office Developer that I use to attach the file I just get from the other email (like 'forward' functionality): Office.context.mailbox.displayNewMessageForm( { toRecipients: Office.context.mailbox.item.to, // Copy

word - highlight search results without permanently changing document formatting

余生颓废 提交于 2019-12-04 15:28:06
I would like to highlight the search results similarly to what word's native search is doing. In other words, I don't want the search action to have side effects in the document, e.g. by changing the color of the font in the returned text ranges. var searchResults = paragraph.search(searchValue); context.load(searchResults, { select: 'text, font, style' }); right now the only way you can achieve your scenario is by traversing the search results collection and change the highlight color for each range like I am showing on the snippet below. To undo this operation you need to do the search again