office-js

The Url of dialog box does not work with angular.bootstrap (infinite $digest Loop)

两盒软妹~` 提交于 2019-12-23 09:27:41
问题 I have a mean-stack website. I want to use ExecuteFunction to bind a button to launch this website in a Dialog box: function doSomethingAndShowDialog(event) { clickEvent = event; Office.context.ui.displayDialogAsync("https://localhost:3000/try", {}, function () {}) } Clicking on the button opens a dialog box with the following url, it does show the content of the page: https://localhost:3000/try?_host_Info=excel|web|16.00|en-us|7fe9b4e9-d51e-bea5-d194-c817bc5ed4bc|isDialog#%2Ftry%3F_host_Info

addFileAttachmentAsync Appends Invalid Authorization Header

白昼怎懂夜的黑 提交于 2019-12-23 05:50:47
问题 I work on an application that as part of one of its features attaches files to outgoing emails with Office.context.mailbox.item.addFileAttachmentAsync . In the most recent update Outlook for Windows Version 1811 (Build 11029.20079 Click-to-Run) the files are failing to attach to the mailbox item with a "Download Error" displayed in the UI. To inspect this further I user Fiddler and discovered that this method has started appending the following header Authorization: Bearer . Since no header

Office Addins file in its TypeScript version doesn't work

徘徊边缘 提交于 2019-12-23 05:10:27
问题 I'm using a template found in https://github.com/OfficeDev/Excel-Add-In-TS-Start Basically, it is the default Excel Office Addins template that Visual Studio generates, but modified to also support TypeScript. The file Home.ts in the root is already in its TypeScript version. There is also a file called FunctionFile.js (inside Functions folder), and I wanted to write my own functions there, but in TypeScript. So, I created a ribbon control of ExecuteFunction type pointing to a function called

addFileAttachmentAsync error with files from azure blob storage

左心房为你撑大大i 提交于 2019-12-23 04:26:09
问题 I am developing an Outlook Add-in where I also want to attach some files to an Outlook Appointment. I am able to upload files to the Azure blob/file storage successfully but if I want to attach these files via the addFileAttachmentAsync method I'll get a Download failed message in Outlook, the status of the result of the method is 'Succeeded' though. The file is public available via the URL https://menatwork.blob.core.windows.net/outlookattachments/Icon80.png (tried both https and http) If I

Access to the attachment in Outlook web add-in

◇◆丶佛笑我妖孽 提交于 2019-12-23 03:24:17
问题 I know I can access to the attachments via Office.context.mailbox.item.attachments Also for each of the attachment I get to access to its members like name But can I actually access to its content and send it to a external server to show it? For example I want to send a pdf attachment to a server, and on the server I want to show the content of that pdf file. 回答1: Turns out that An Outlook Add-in cannot pass the attachments of a selected item directly to the remote service that runs on your

HOWTO read Outlook custom property set with GRAPH

北慕城南 提交于 2019-12-23 01:49:07
问题 I am using the Office.js CustomProperties interface to store application specific data. Using the Office.js library I can succesfully read the information back in different application sessions using Office.js. A different API process needs to read this data using the MS Graph interface. I did read Get custom property set in Outlook Add-In via Microsoft Graph but for me it does not work. I do get the message information but without any extended properties. What is it that I am doing wrong?

Office.js dialog API and multiple displays with high DPI

别说谁变了你拦得住时间么 提交于 2019-12-23 01:47:13
问题 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. 回答1: Thank you Benoit. Yes this is

Blank Auth Dialog Window in Outlook React Addin

北战南征 提交于 2019-12-23 00:51:36
问题 I have tried using Dialog API and office-js-helpers for authenticating users in my Outlook Addin React app and both of them create pop-ups for auth but they are both blank screens. Both methods return the following error The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the

Expanding singleValueExtendedProperty not working when retrieving Event details

谁说胖子不能爱 提交于 2019-12-22 20:43:30
问题 I am trying to retrieve custom property value for an event using Microsoft Graph. The custom property was created by an Outlook Office.js Add-ing Here is request /v1.0/me/events/{id}?$expand=singleValueExtendedProperties($filter=id eq 'String {00020329-0000-0000-C000-000000000046} Name myCusProp') This returns a successful response from Graph but it does not return the singleValueExtendedProperty . The Outlook add-in, however, is still able to retrieve the property value from the same Event.

Expanding singleValueExtendedProperty not working when retrieving Event details

两盒软妹~` 提交于 2019-12-22 20:43:01
问题 I am trying to retrieve custom property value for an event using Microsoft Graph. The custom property was created by an Outlook Office.js Add-ing Here is request /v1.0/me/events/{id}?$expand=singleValueExtendedProperties($filter=id eq 'String {00020329-0000-0000-C000-000000000046} Name myCusProp') This returns a successful response from Graph but it does not return the singleValueExtendedProperty . The Outlook add-in, however, is still able to retrieve the property value from the same Event.