outlook-web-addins

Specify value for ~remoteAppUrl in an Office add-in manifest

依然范特西╮ 提交于 2019-12-09 05:44:58
问题 I'm writing an add-in for Outlook using the new framework. The manifest in the project template uses ~remoteAppUrl to represent the location of the web files. It works great during development, but to publish to the Office Store I need the production URL there. If I save the production URL to the manifest, the production server gets used during debugging, and so local changes don't show up. The documentation mentions Visual Studio filling in this value during debugging: Next, Visual Studio

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

纵饮孤独 提交于 2019-12-09 03:45:05
问题 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

Outlook web add-in autentication failure for on-premise exchange

杀马特。学长 韩版系。学妹 提交于 2019-12-08 13:27:29
问题 I use Office.js 's getCallbackTokenAsync to load the token to pass to the backend. In the backend, I use EWS to retrieve the email data. Here is how I perform the authentication. ExchangeService service = new ExchangeService(); service.Url = new Uri(ewsUrl); //retrieved from getCallbackTokenAsync service.Credentials = new OAuthCredentials(ewsToken);// retrieved from getCallbackTokenAsync It works well in exchange online enviroment. However when tested in on-premise exchange server, I got this

Office365 “addFileAttachmentAsync” error when doing multiple requests

你。 提交于 2019-12-08 11:39:29
问题 I am experiencing issue with addFileAttachmentAsync . I have 2 array : embeddedFiles (containes filenames that will be attached into body) and attachments (containes filenames that will be attachment). I have got 2 for loops running for each array and they should make GET request to Exchange Server with every single file in array and get back binary file. for (var i = 0; i < embeddedFiles.length; i++) { var attachmentName = (new Date()).getTime() + ".png"; var count = 0; var options = {

Office.context.mailbox.addHandlerAsync fails when reload the frame

别来无恙 提交于 2019-12-08 10:56:02
问题 I am implementing the pinnable taskpane in my outlook web add-in This is my code: Office.initialize = function (reason) { $(document).ready(function () { // Listen to ItemChanged event Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged, itemChanged, function (result) { console.log(result) if (result.status === Office.AsyncResultStatus.Failed) { // here will be hit if I do a postback in the server, could also be replicated by choosing "reload frame" in the right click menu

Item.to.getAsync() when the to value changed is trigerred to late

泄露秘密 提交于 2019-12-08 10:44:25
问题 In outlook (website or application), before a message will be sent (click on send button), we're trying to check/adapt the "to" addresses. We want to make sure that the email addresses are adapted before the message is sent. For this we're actually using the event item.to.getAsync() The problem is that this event is not called on sent button click and we observed that the event (item.to.getAsync()) takes to much time to be trigerred by a value change in the "to" field. Example: After entering

OfficeJs: Outlook Addin: Dialog API's messageParent not working with OWA

我的梦境 提交于 2019-12-08 10:08:25
问题 Background: I have an outlook addin which basically opens up a login dialog which opens up addin page hosted on my website from here user is redirected to auth0 from where he's redirected to login.live.com and post auth I get back either a code or an error back to another page again on my website. Now, everything works fine in the outlook thick client. When I close the dialog manually I get the right error code in parent. Problem: When using the OWA and hosting the addin code on my website,

Where to store larger data for Outlook Web App?

左心房为你撑大大i 提交于 2019-12-08 08:14:37
问题 I am developing my first add-in for the Outlook Web App. It's not clear to me where I should store larger pieces of data provided by the user (e.g., big chunks of text, images) and to be associated with the add-in (as opposed to belonging to a particular mail item). My impression is that RoamingSettings is supposed to be for relatively small stuff, and therefore not a good fit. I could store the data on OneDrive, but I prefer not to expose the data to the user outside of the add-in UI. I

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

倖福魔咒の 提交于 2019-12-08 08:03:54
问题 The following is the start of a file form a working MS Outlook web add-in. <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <title></title> <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js" type="text/javascript"></script> <script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript"></script> <link rel="stylesheet" href="https://appsforoffice.microsoft.com/fabric/1.0/fabric

Outlook Add-In API does not fire the ItemChange event consistently on Firefox/Chrome

主宰稳场 提交于 2019-12-08 07:12:54
问题 We have enabled task pane pinning in our manifest for an Outlook add-in and noticed that the pinning support is now available in the Outlook Office online in addition to the Windows Outlook 2016 client. However, the ItemChange event does not seem to be triggered consistently when switching mail items (I am unable to discern any rhyme or reason on when it gets fired). We are listening for this event using the addHandlerAsync method. Is this a bug? 回答1: I was experiencing the same issue.