outlook-web-addins

Access to Outlook RestAPI from an Outlook web Add-in

半世苍凉 提交于 2019-12-17 21:07:50
问题 I developed an Outlook Web Add-in that is working fine. It's a Taskpane that is available in compose mode of appointments and that collects event's data, adds a few ones and send that all to an API somewhere. What I would like to do now is to subscribe the authenticated user to the Outlook Rest API in order to get notified when the event is deleted. The subscription call should look like this one: POST https://outlook.office.com/api/v2.0/me/subscriptions HTTP/1.1 Content-Type: application

Get custom property set in Outlook Add-In via Microsoft Graph

陌路散爱 提交于 2019-12-17 17:07:52
问题 Let's say I have in my Outlook Add-In (using Office.js) following code running on a compose form of an appointment: const item = Office.context.mailbox.item; item.loadCustomPropertiesAsync((result) => { const props = result.value; const testProp = props.get("my_prop"); console.log("CUSTOM_PROP", testProp); props.set("my_prop", "test_value"); props.saveAsync((saveResult) => console.log("SAVE_CUSTOM_PROP", saveResult)); }); I see, that it actually is saved on the event. And now a bunch of

Call to getUserIdentityTokenAsync() returning a null token

跟風遠走 提交于 2019-12-13 12:22:44
问题 We have an add-in in production where, for certain users, the call to getUserIdentityTokenAsync() fails and returns a null token. The response is "Status" = "failed", "Error" = {message: "An internal error has occurred", name: "Internal Error"} Would anyone know what could cause this type of failure? Certain users always get the error, and we have never seen the error locally or during development. It seems to happen only for desktop Outlook users. We have not seen any errors for users when

How to Capture office 365 Calendar Events like cancel, move appointment

[亡魂溺海] 提交于 2019-12-13 07:18:43
问题 Is there any way to capture calendar events like Cancel or move from office365? 1. Can we use some kind of add in here which will keep on listening to these events and if user canceled some appointment it provide us those appointment details and we can pass it to our internal application. 回答1: To me, it sounds like a better solution is to use REST API events to listen to updated calendar items (or created, deleted, etc.) and let your server application handle the events rather than have an

Outlook add in not work with Angular routing under Mac OS(High Sierra 10.13.1)

半城伤御伤魂 提交于 2019-12-13 04:22:20
问题 After updated to latest Mac OS (High Sierra 10.13.1), our outlook web add in not function properly, the page is blank, the reason is the url specified in the add-in manifest is not matched by angular route which is further caused by a wrong manipulated url. The url I specified in the manifest is https://localhost:4004/#!/main/viewschedule But the actual I got from window.location.href is: https://localhost:4004/?_host_Info=Outlook$Mac$16.01$en-US%23!/main/viewschedule Please note %23 in the

401 Unauthorized when trying to send emails from EWS Managed API

蓝咒 提交于 2019-12-13 03:47:55
问题 Ok so I am developing an addin which must automatically send emails to others. I know that office-js does not have permissions to do so and I have started using EWS Managed API. I have implemented SSO token and I get it with: Office.context.auth.getAccessTokenAsync() After I get the token I make a request call to my server where I have my EWS Managed API and try to send an email with the folowing code: ExchangeService exService = new ExchangeService(); exService.Url = new Uri(ewsUrl);

New Outlook API (2015) mail add-in send event

喜你入骨 提交于 2019-12-13 02:00:38
问题 Does the new Microsoft Outlook API, which enables development of Outlook addins for cross platform, have the ability to trigger an event off the user clicking the send button? I currently have an Outlook VSTO addin that uses the Application.ItemSend event to check an email for specific content and present the user with a popup asking them if they still want to send or not. This is only compatible with Outlook 2007-16 on Windows though, and I was hoping the new API might enable me to build

cors issue with Outlook Add-In

本小妞迷上赌 提交于 2019-12-12 09:18:40
问题 I am writing an Outlook Add-in and I am trying to make a fetch request to Jira. However, I am running into what I think is a CORS issue and I'm not sure how to get around it. The error message says: "[blocked] The page at https://localhost:3000/index.html?_host_Info=Outlook$Mac$16.02$en-US was not allowed to display insecure content from http://mysite.atlassian.net/rest/api/2/myself ." Is there any way to make a fetch request from an Outlook Add-in to get around CORS? My add-in is just a

Office.context.mailbox.item.body.setAsync removing original base64 from signatures

左心房为你撑大大i 提交于 2019-12-12 05:17:05
问题 I'm trying to use Office.context.mailbox.item.body.getAsync and Office.context.mailbox.item.body.setAsync Javascript methods in my Outlook add-in to add some content to the mail body. It's working really well, except when the user has an image on its signature. The image disappears and only its alt attribute is shown. If I inspect the html, the <img> element is there, but the src attribute turns into (unknown) instead of showing the original base64. 回答1: I work days on this problem without

Outlook AddIn Mobile Issue - not working in mobile whereas same code works for Desktop and web client

半世苍凉 提交于 2019-12-11 16:56:28
问题 I have the bellow error in Microsoft exchange server service, but only on mobiles as same code works for Desktops and web. ERROR MESSAGE: System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.Exchange.WebServices.Data.EwsHttpWebRequest.Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest.GetResponse() in \REDMOND\EXCHANGE\BUILD\E15\15.00.0913.015\SOURCES\sources\dev\EwsManagedApi\src\EwsManagedApi\Core