outlook-web-addins

getCallbackTokenAsync returns “An internal error has occurred”

限于喜欢 提交于 2019-12-06 08:09:29
I have created an Outlook add-in, which uses mailbox.getCallbackTokenAsync() function to authenticate with EWS API. For the majority of the add-in users, this works without issues. However, for some users, calling this function results in the "An internal error has occurred" error. This seems to occur just once, and subsequent calls to this function return token successfully. Users that experience issues use various Outlook versions - Outlook 16.0.6965.2115, Outlook 16.0.7571.2109, Outlook Mac 15.29, ... Do you have any idea what is the cause of this error? 来源: https://stackoverflow.com

prevent task pane from closing during saving (async)

落花浮王杯 提交于 2019-12-06 06:43:51
问题 We use the OfficeJs REST API for add-in development. To use this API, an accesstoken is needed, which we request by invoking Office.mailbox.getCallbackTokenAsync({ isRest: true }) during startup of our add-in. This does not fail for any code triggered by the onSend function: It seems OfficeJs saves the mail item before onSend code is triggered. However, this request apparently does fail when the mail item is not yet saved - which is the case for any new draft when it is just created - and

Expanding singleValueExtendedProperty not working when retrieving Event details

笑着哭i 提交于 2019-12-06 05:52:58
I am trying to retrieve custom property value for an event using Microsoft Graph. The custom property was created by an Outlook Office.js Add-ing Here is request /v1.0/me/events/{id}?$expand=singleValueExtendedProperties($filter=id eq 'String {00020329-0000-0000-C000-000000000046} Name myCusProp') This returns a successful response from Graph but it does not return the singleValueExtendedProperty . The Outlook add-in, however, is still able to retrieve the property value from the same Event. { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('{id}')/events/$entity", "@odata

Detect when item is changed in Outlook Web Add-in

拟墨画扇 提交于 2019-12-05 23:03:56
I would like to update the content of my Outlook Web Add-in when Calendar event data is changed. Is there any possibility to catch kind of ItemChanged event in the web add-ins? I have found some projects with OnSend , but trying that way does not work, and there is only that event possible to catch. Currently the feature you are specifying is not a part of the product. However, we are actively investigating what types of events would be beneficial for the platform. We track Outlook add-in feature requests on our user-voice page . Please add your request there. Feature requests on user-voice

Outlook Add-in command button disabled when composing

ぃ、小莉子 提交于 2019-12-05 18:32:59
My add-in has a MessageComposeCommandSurface ExtensionPoint that adds a button to the ribbon when the user is composing a message. I expected the button to always be enabled when it is visible (e.g. when the user is composing a new message or replying to an existing one), but sometimes it is greyed out/disabled and I'm not sure why. Does anyone know the exact circumstances for when an add-in ribbon button is greyed out/disabled? Try to disable some COM add-in and then enable it again. In my case it helped to make buttons active. 来源: https://stackoverflow.com/questions/46697093/outlook-add-in

Outlook API 1.3 version not showing on Outlook Desktop Professional Plus 2016

[亡魂溺海] 提交于 2019-12-05 10:29:11
On this page https://github.com/OfficeDev/office-js-docs/blob/master/reference/outlook/tutorial-api-requirement-sets.md it is specified that both Outlook 2016 (MSI) for Windows and Outlook 2013 for Windows support Outlook API up to Version 1.4, but when we try to increase the minimal version in the manifest from 1.1 to 1.3, the addin works fine on web but does not show on both desktop versions. Currently I am working on Outlook Professional Plus 2016 with build number 16.0.4312.100, 64bit on Windows 10. I am trying a simple addin generated by yeoman office-generator, with only change is the

Office add-in is not activated on Outlook if open .msg template

自古美人都是妖i 提交于 2019-12-05 10:00:15
问题 My add-in has a MessageComposeCommandSurface ExtensionPoint that adds a button to the ribbon when the user is composing a message and MessageReadCommandSurface for the read mode. I expected the button to always be enabled when it is visible (e.g. when the user is composing a new message or replying to an existing one). Works perfectly, but my add-in is greyed out/disabled when opening a template (save a message as a template and open .msg file with outlook) . Add-in is greyed out if .msg was

EWS request not responding with error on Mac

旧巷老猫 提交于 2019-12-05 05:42:39
问题 In our Outlook add-in, we are using makeEwsRequestAsync to get the current email's MimeContent . We understand there is a 1MB request/response limit when using EWS via the JavaScript API. When we reach this limit on Windows, we at least see this message: "Response exceeds 1 MB size limit. Please modify your EWS request". However, when making this request for a large email (>1MB) on Mac (Outlook 2016), we don't get any sort of response whatsoever. The add-in just seems to hang. Is there any

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

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