outlook-web-addins

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

prevent task pane from closing during saving (async)

ε祈祈猫儿з 提交于 2019-12-04 11:53:40
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 thus breaks the init code of our add-in when the task pane is opened straight after composing a new

How can we force a mailbox item to be persisted to EWS?

这一生的挚爱 提交于 2019-12-03 21:50:21
Note: This particular issue has significant impact on our customers, which translates to high business impact with direct consequences on revenue. TL;DR. How can our Office add-in for Outlook, when a user interacts with our add-in while composing an email draft, minimize the amount of time it takes before the EWS GetItem API will return an OK response for the itemId we receive from Office.context.mailbox.item.saveAsync() ? If it turns out that our add-in has no control over when the item will be persisted to EWS, then what could an end-user do to speed this up ? We are looking for either (a) a

EWS request not responding with error on Mac

本小妞迷上赌 提交于 2019-12-03 21:12:46
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 way we can catch this error on Mac? We would like to show a dialog or something notifying the user that

All-in-one add-in for outlook

孤街醉人 提交于 2019-12-02 08:35:13
问题 I want to develop all-in-one add-in for Outlook. This means that this add-in will be available for all Outlook clients (desktop, web). I read here that i can do this. I already created add-in for Outlook Web Application and tried to deploy it to desktop client, but didn't figure how to make it. So how to make it set on desktop and outlook.com? Is that really possible? And if yes, how it can be done? 回答1: Technically you can't make an add-in that will work 100% on all clients. The web-based

1 MB response size limit with outlook web add-ins

霸气de小男生 提交于 2019-12-02 07:14:22
I'm using makeEwsRequestAsync to get the full MIME content of the email. But it looks like response size is capped at 1 MB, per the error message in the response: "ErrorMessage":"Response exceeds 1 MB size limit. Please modify your EWS request.” <GetItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"> <ItemShape> <t:BaseShape>IdOnly</t:BaseShape> <t:AdditionalProperties> <t:FieldURI FieldURI="item:MimeContent"/> </t:AdditionalProperties> </ItemShape> <ItemIds><t:ItemId Id="' + itemId + '"/></ItemIds> </GetItem> I need to get MIME content of messages which may exceed 1 MB,

Trusted way to get the host origin of an Office add-in

扶醉桌前 提交于 2019-12-02 02:56:17
I'm currently implementing an Outlook Add-in. It shows the user a pop-up window whenever the user is about to complete a potentially dangerous action, to protect against clickjacking attacks . I was hoping not to have to show the user the pop-up window every time they use the add-in -- only the first time they use it from a new host origin. Is there a way to get the verified host origin of an Office add-in, so I can remember that the user trusts it for next time? Right now I'm listening for the postMessage s from the host (e.g. https://outlook.office.com ) to the Office.js SDK and looking at

Outlook WebAddin throwing internal server error when registering Office.EventType.ItemChanged

孤街醉人 提交于 2019-12-02 02:25:39
问题 In my outlook WebAddin, i am trying to register for mail ItemChange event using below code. Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged, mailItemSelectionChanged, [], function (result) { if(result && result.status != 'succeeded'){ console.error('result => ' + result); } }); Whenever user changes mail in pinned mode, i receive mail change event for first time. then if there is change in conversation, i am reloading the plugin with location.reload() to clear the cache