office-js

Outlook Addin Error Code 13005 for auth.getAccessTokenAsync

左心房为你撑大大i 提交于 2019-12-08 12:38:57
问题 So I am trying to use single sign on in an outlook addin. I have registered my app at https://apps.dev.microsoft.com/. In my Manifest I have <WebApplicationInfo> <Id>{myId}</Id> <Resource>api://mydomain.com:3000/{myId}</Resource> <Scopes> <Scope>Mail.Read</Scope> <Scope>profile</Scope> </Scopes> </WebApplicationInfo> mydomain.com is actually a domain i map to my local IP. Outlook accepts my manifest just fine. How ever when i call Office.context.auth.getAccessTokenAsync , I get the following

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

Calling SaveAsync method sends email to attendees for existing appointment?

早过忘川 提交于 2019-12-08 10:50:39
问题 I just noticed following change related office js (in compose mode for outlook add-in), Office.context.mailbox.item.saveAsync(function(result){..} Previously calling saveAsync method inside Outlook Add-in was sending invitation email for new appointment or draft, could be due to recent fixes or changes now it won't send invitation email to attendees for new/draft appointment. But this change has introduced new BUG, now it sends email on existing appointment which was working fine previously.

Office JavaScript API: highlighting text in a document

删除回忆录丶 提交于 2019-12-08 10:36:36
问题 I'm working on a side project using the Microsoft Office JavaScript APIs. I have been relying on the documentation to find my way around, but I've hit a wall trying to find something in the docs (perhaps it isn't there because it doesn't exist). Recently I attempting to implement some functionality to highlight some text within a Word document. I don't want to modify the document, mind you; in other words I would rather not use something like ContentControl.insertHtml as that would change the

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,

Language Override entries that can work in Outlook 2016 and OWA

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 09:54:34
问题 The following add-in manifest entry works in Outlook 2016 but not in OWA: <bt:String id="strAbout" DefaultValue="About"> <bt:Override Locale="fr-fr" Value="À propos" /> <bt:Override Locale="nl-nl" Value="Info" /> <bt:Override Locale="de-de" Value="Über" /> <bt:Override Locale="sv-se" Value="Om" /> <bt:Override Locale="ja-jp" Value="バージョン情報" /> <bt:Override Locale="zh-tw" Value="關於" /> <bt:Override Locale="zh-cn" Value="关于" /> </bt:String> The reason why is you select just the language in

Outlook Web addin display Error message as information

六月ゝ 毕业季﹏ 提交于 2019-12-08 09:09:03
问题 I want to display error notification. My code is following Office.context.mailbox.item.notificationMessages.addAsync("error", { type: "errorMessage", message: "The add-in failed to process this message." }) it shows response as It should be error type message. 回答1: According to documentation on NotificationMessages object .ItemNotificationMessageType property ... If type is ProgressIndicator or ErrorMessage, an icon is automatically supplied and the message is not persistent. This particular

How to forward an email using Office JS Add-in API?

筅森魡賤 提交于 2019-12-08 08:59:22
问题 I'm trying to develop an add-in using Office 365 Javascript API for Outlook. I'm using Microsoft's reference to look for methods that will allow me to forward the currently opened email when I click a button. The issue is that there's not a single method on the reference that can do that, how can I forward an email using Office JS API? I imagine it should be something like that: var item = Office.context.mailbox.item; # item represents the currently opened email item.Forward(email) 回答1: There

How are Office add-ins in AppSource distributed to organizations and single-users

梦想与她 提交于 2019-12-08 08:14:38
问题 I developed an Office Word add-in that I'd like to make available to organizations as well as single users. I understand that the AppSource will only grant licenses to single users, and that if I want to distribute to organizations I must create my own licensing and accounting backend[1] and have an IT professional at the purchasing organization run a centralized deployment of the add-in. My question deals with finding the best practice to offer the app on AppSource such that both an single