outlook-web-addins

UI.displayDialogAsync() does not work in Outlook 2016 / Windows 10

丶灬走出姿态 提交于 2019-12-08 06:09:45
问题 We build an Outloook Addin and are testing it across different platforms. It works on all the browsers (IE 11, Edge, Chrome and Safari), but not in the Outlook 2016 on Windows 10. We root cause it, looks like the problem is Office JS API UI.displayDialogAsync() . It does not open a dialog in Outlook 16 and the addin just hangs in there with the following progress message spinning forever, [Your Addin] is working onr your [Request] The closest thing we found on the Internet is this Stackflow

Office.context.mailbox.item.to.getAsync updates TO field with partial data

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 05:37:53
问题 I start typing in Outlook TO field and at the same moment query every 1s TO field from the installed Add-in. While I'm still typing I expect to receive an empty array but Outlook (office-js SDK): Returns data with empty emailAddress and typed displayName Creates new address with partially typed displayName and incorrect emailAddress generated from typed data. I can handle the first issue but how to prevent the second one? Executed code: Office.cast.item.toItemCompose(Office.context.mailbox

Outlook 365 addin throws 401 unauthorized error on android outlook mobile app

落花浮王杯 提交于 2019-12-08 05:07:36
问题 I am developing Outlook Add-In that will run over all modern browsers, android and iOS. I am using Managed EWS API to fetch the email and its attachment by passing ewsUrl , itemId and ewsToken in OAuthCredentials class which is my remote service. I am getting ewsToken by using Office.js getCallbackTokenAsync method from UI and passing all this information to my remote service to use the Managed EWS API to fetch email from exchange server. For browsers it works fine but when we use Outlook

(Beginner) How to call Outlook RESTful APIs in Outlook VSTO Add-In

ε祈祈猫儿з 提交于 2019-12-08 05:00:52
问题 I'm looking to develop an Outlook Add-In, in which I receive a meeting room request and propose another room based upon conditions relating number of participants and size of the other rooms. I'm attempting to do this using a VSTO Add-In in C#. My problem comes in the algorithm to determine the list of rooms and which room is smaller. From research, I can see that Outlook incorporates a number of RESTful APIs (https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations).

Outlook JS Addin - Compose form - how to check if the event/message is saved?

好久不见. 提交于 2019-12-08 02:43:11
问题 Is there a way in the compose form of an Outlook Add-In (office.js) to check if the object behind the form (in my case a calendar event) is already saved? 回答1: Check the ItemId; if it's undefined the message was not stored, and if it exists the message is from Draft. Please refer to Office.context.mailbox.item.itemId EDIT: I don't want to delete the answer completely, because of the valuable input in comments from Tim Wan. Basically there is no way to identify if message was persisted on the

Publishing Outlook add-in which uses Outlook preview element - SupportsSharedFolders

只愿长相守 提交于 2019-12-08 02:34:18
问题 I am developing Outlook add-in which will work with shared mailboxes. Currently, office add-ins are not available on delegate scenarios but MS has released preview build which supports these scenarios. https://docs.microsoft.com/en-us/office/dev/add-ins/reference/manifest/supportssharedfolders My problem is since the manifest.xml has preview elements; I can't upload the it at outlook.office365.com under my add-ins . I get following error. This app can't be installed. The manifest file doesn't

Office.context.mailbox.item.to.getAsync updates TO field with partial data

橙三吉。 提交于 2019-12-07 15:44:31
I start typing in Outlook TO field and at the same moment query every 1s TO field from the installed Add-in. While I'm still typing I expect to receive an empty array but Outlook (office-js SDK): Returns data with empty emailAddress and typed displayName Creates new address with partially typed displayName and incorrect emailAddress generated from typed data. I can handle the first issue but how to prevent the second one? Executed code: Office.cast.item.toItemCompose(Office.context.mailbox.item).to.getAsync(res => { if(res.status === Office.AsyncResultStatus.Succeeded) { console.log(res.value

Detect when item is changed in Outlook Web Add-in

荒凉一梦 提交于 2019-12-07 14:24:33
问题 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. 回答1: 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

Office.js dialog API and multiple displays with high DPI

时光总嘲笑我的痴心妄想 提交于 2019-12-07 09:20:26
I noticed a problematic behavior of the Office.js dialogAPI . Indeed, I use two monitors one being an high DPI (3840*2160) with 250% zoom. The second one is 1920*1080 (zoom 100%). If Office is set in monitor 1 and if I open the dialogAPI (let us say with 80% default values), then the size of the dialog is computed using the extension of the two monitors. Therefore, the dialog windows becomes gigantic, span the two displays and cannot be used without resizing. Thank you Benoit. Yes this is an issue we are aware of and are currently following up. Could you try using the Dialog helper in

Outlook 365 addin throws 401 unauthorized error on android outlook mobile app

半城伤御伤魂 提交于 2019-12-07 00:47:26
I am developing Outlook Add-In that will run over all modern browsers, android and iOS. I am using Managed EWS API to fetch the email and its attachment by passing ewsUrl , itemId and ewsToken in OAuthCredentials class which is my remote service. I am getting ewsToken by using Office.js getCallbackTokenAsync method from UI and passing all this information to my remote service to use the Managed EWS API to fetch email from exchange server. For browsers it works fine but when we use Outlook Mobile on Android, ewsUrl returns null which I hard-coded to https://outlook.office365.com/ews/exchange