outlook-web-addins

Outlook Add-in command button disabled when composing

独自空忆成欢 提交于 2020-01-02 07:37:10
问题 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? 回答1: Try to disable some COM add-in and then enable it again. In

Outlook Add-in command button disabled when composing

孤街浪徒 提交于 2020-01-02 07:37:07
问题 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? 回答1: Try to disable some COM add-in and then enable it again. In

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

拈花ヽ惹草 提交于 2020-01-01 19:32:09
问题 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

Access CustomProperties set using office365 JS APIs from EWS or REST API

烂漫一生 提交于 2020-01-01 12:33:13
问题 I have an office 365 mail app that stores a value in a custom property before the item is saved. When the item is saved I want to access this property using a server-side application. Reading through the custom properties documentation tells me I can't access custom properties created using the JS API using any other service like EWS since these are not MAPI properties. Are there any workarounds ? Is it possible to access these using REST APIs ? 回答1: Actually, it is documented where they are

Can't add attachment to message in outlook add-in using Outlook rest API

僤鯓⒐⒋嵵緔 提交于 2019-12-31 05:38:08
问题 I see this Access to Outlook RestAPI from an Outlook web Add-in question but nothing about attachment there. I success to make outlook rest API request from my add-in follow https://dev.office.com/docs/add-ins/outlook/use-rest-api?product=outlook this tutorial . For example I success to get some message details), but I have 2 problems: I can't add attachment with outlook rest API call to message. I try to make call with the itemId like here: https://outlook.office.com/api/v2.0/me/messages/" +

1 MB response size limit with outlook web add-ins

Deadly 提交于 2019-12-31 03:51:06
问题 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

Outlook add-in not displayed in Mac OS

我是研究僧i 提交于 2019-12-24 10:17:00
问题 We found that our Add-in cannot work on the latest Mac OS (High Sierra 10.13.1). Our outlook version is 15.40. The Add-in cannot be loaded correctly. The Add-in uses AngularJS. It looks the ngview of the AngularJS cannot be run correctly. We don't know how to do further analysis with such error. Do you know if the outlook has a place to see the error like the browser's development mode to see the console information? We use script below to bootstrap angular, I might think some error raised

itemId is changing after mail sent in outlook mail

ぃ、小莉子 提交于 2019-12-24 01:53:56
问题 I am getting itemId of a mail item after saveAsync in compose mode. Once mail item is sent, item Id coming in Office.context.mailbox.item.itemId is different than what is given in compose mode. Code used for getting itemId in compose mode: var itemId = Office.context.mailbox.item.itemId; if (itemId === null || itemId == undefined) { Office.context.mailbox.item.saveAsync(function (result) { itemId = result.value; }); } After the email is sent, I verified email's itemId from sent box using:

Task Pane Addin for outlook Web app

狂风中的少年 提交于 2019-12-23 15:54:19
问题 By command Add-in, task pane is going to appear to the right side of outlook desktop app. Similarly, is it possible to have task pane to appear to the right side in the Outlook Web app? Thanks in advance. 回答1: Following up with this. Addin Commands are now available on Outlook on the Web (OWA) and Outlook for Mac. If you have implemented an Addin Command for Outlook, it should work without modification for the newly implemented platforms. 回答2: Unfortunately, at the time of the writing it is

Outlook Web App (Exchange 2013 On-Premise) API 1.2 How to access Email Body?

痞子三分冷 提交于 2019-12-23 12:59:42
问题 Office.context.mailbox.item.body gives null while Office.context.mailbox.item.body.getAsync() works only with JavaScript API 1.3 . Is there any way to fetch email body with JavaScript API 1.1/1.2 ? 回答1: Yes you can. Actually, you will retrieve the body using Exchange Web Services. As explained here there are two ways to do this: 1) SOAP request from javascript (client app) or 2) server side using an SDK such as the .NET Exchange Web SDK For solution 1), your request could look like the