profile
viewpoint
Outlook Add-ins Team - MSFT exextoc

OfficeDev/office-js-docs 401

[ARCHIVED] Microsoft Office Add-ins API Reference Documentation

OfficeDev/office-js 303

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.

OfficeDev/office-js-docs-pr 266

Microsoft Office Add-ins Documentation

OfficeDev/outlook-dev-docs 48

Microsoft Outlook Developer Documentation

OfficeDev/office-js-docs-reference 38

Microsoft Office JavaScript API Reference

exextoc/DefinitelyTyped 0

The repository for high quality TypeScript type definitions.

exextoc/Office-Addin-TaskPane 0

Template to get start started writing a TaskPane Office Add-in.

exextoc/Office-Addin-TaskPane-JS 0

Template to get start started writing a TaskPane Office Add-in using JavaScript

exextoc/office-js-docs 0

Microsoft Office Add-ins Documentation

issue commentOfficeDev/office-js

Several properties are missing from window.Office.context.mailbox on "New Outlook" for Mac

We have fixed the RestUrl bug and the fix should be available in next monthly build. Depending on the release channel a customer is on, getting an updated build can take anywhere from 4-8 weeks.

modestfake

comment created time in 17 minutes

issue commentOfficeDev/office-js

Office.context.mailbox.item is null

You mentioned the customer is using both Windows 7 and Windows Server 2019? Does the issue occur on both configurations? It could be unrelated, but that version of Outlook (Version 2002) is supported on Windows Server 2019, but not on Windows 7.

ArjunSureshKumar92

comment created time in 10 hours

issue commentOfficeDev/office-js

Outlook Desktop: WWAHost.exe and Win32WebViewHost.exe hang after closing Outlook

Thanks for reporting this issue. I'm able to reproduce it with your repro steps.

I've added this issue to our backlog for further investigation (internal tracking id Office:4584153).

DmitryKostochko

comment created time in 11 hours

issue closedOfficeDev/office-js

Compatibility between Toggling 'Up/Down' arrows in Inspector View and Pinnable Taskpane

The Outlook Addin has inconsistent behavior when it is pinned in Inspector View while the user interacts the 'up' and 'down' arrows to toggle through emails in Read Mode. Additionally, as the user toggle through emails in the Inspector View, the Explorer View also updates with the respective email. Because the addin is pinned, it also loads up in Explorer View and we observed a delay in the getItem call.

Expected Behavior

In the Outlook Addin, both the Inspector and Explorer views should load getItem context without error

Current Behavior

  1. In the Outlook Addin, the Explorer View often times has a delay when attempting to getItem
  2. The pinned Addin in the Inspector View sometimes sometimes does not remain pinned on email toggle

Steps to Reproduce, or Live Example

  1. Open Outlook Addin and pin it to Explorer View
  2. Double click on any email in the Inbox Folder to open up Inspector View
  3. Observe the Addin open in the Inspector View
  4. Use the 'Up/Down" arrows to switch to another email and observe Addin behavior in both Explorer and Inspector Views.

Inspector View up/down arrows updownarrows

Failed getItem call in Explorer View explorerview

Context

  • Arose from a customer investigation

Your Environment

<!--- Include as many relevant details about the environment you experienced the bug in -->

  • Platform [PC desktop, Mac, iOS, Office Online]: Outlook Desktop on Windows

closed time in 12 hours

Byron-Mo

issue commentOfficeDev/office-js

Compatibility between Toggling 'Up/Down' arrows in Inspector View and Pinnable Taskpane

This should be fixed in builds 16.0.13110.10000 and later.

Byron-Mo

comment created time in 12 hours

issue commentOfficeDev/office-js

"Outlook for web" is not able to send attachments with API call "addFileAttachmentFromBase64Async"

We are able to reproduce this from our side. Thanks for reporting this issue. It has been put on our backlog. We unfortunately have no timelines to share at this point.

AdielAhmad

comment created time in 20 hours

issue commentOfficeDev/office-js

saveAsync for appoinment does not work

We are able to reproduce this from our side. Thanks for reporting this issue. It has been put on our backlog. We unfortunately have no timelines to share at this point.

Andrey26

comment created time in 21 hours

issue commentOfficeDev/office-js

Getting the draft in new tap when sending a message

The on-send pop-up changes are as per design. This was made to make sure that email cannot be edited when On-Send is functioning. The documentation doesn't clearly call it out and its a bug from our end. We will update the documentation. However, we take the bad user experience part as a feedback and will evaluate it.

sarea

comment created time in 21 hours

issue commentOfficeDev/office-js

Outlook Desktop, Outlook for Mac: Office.context.mailbox.item.getSelectedDataAsync returns incorrect HTML for numbered and bulleted lists

We are able to reproduce this from our side. Thanks for reporting this issue. It has been put on our backlog. We unfortunately have no timelines to share at this point.

DmitryKostochko

comment created time in 2 days

issue commentOfficeDev/office-js

Outlook for Mac: Office.context.mailbox.item.body.getTypeAsync returns "An internal error has occurred" after several (3-5) calls

We are able to reproduce this from our side. Thanks for reporting this issue. It has been put on our backlog. We unfortunately have no timelines to share at this point.

DmitryKostochko

comment created time in 2 days

issue commentOfficeDev/office-js

DialogMessageReceived event is not being triggered in Exchange 2016 OWA since 8th July

Unfortunately it is still part of our backlog with Internal tracking id: OutlookWeb:91074. We have no timelines to share at this point

westconference

comment created time in 3 days

issue commentOfficeDev/office-js

Task Pane add-in shows 'disabled to keep you safe' starting October 15th 2020 in OWA (Exchange back-end)

The update was provided to improve the security around Office add-ins. we recommends that you update to the latest October SU to stop the add-ins from breaking. Once the SU is done, users will see a one-time prompt asking them whether they trust the domain on which the add-in is hosted. This is as per design.

westconference

comment created time in 3 days

issue closedOfficeDev/office-js-docs-pr

How Safe to Use Identity Token for Authentication?

Generally this is question! The page describes how to use identity token for the authentication. Basically it suggests to keep associate user identity context with internal user and later use identity token as a proof for authentication. But other documentation related to identity token, also tests shows that identity token is the same for all add-ins (if they provide the same appurl). Feels like we can have security issue here. If attacker will provide the url from our add-in as me, and will add dns record to the computer (e.g. in /etc/hosts file). Then he can successfully generate identity token which will be valid for our system (even checking aud value will not help here). Is my thoughts right?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

closed time in 3 days

vigen-b

issue commentOfficeDev/office-js

getAttachmentContentAsync "the operation is not supported"

@SanketDG The OP confirmed that the original issue was resolved in Version 1908 Build 11929.20300. Could you open a new issue with a code sample for the API that's failing?

getAttachmentContextAsync was released with Requirement Set 1.8 and should be available in any Outlook version supporting that requirement set.

TriSysBusinessSoftware

comment created time in 4 days

issue commentOfficeDev/office-js

Dialog window does not support add-in for the new Outlook for Mac

Yes "reply/replyAll" in the current window will work.

Petryxasport

comment created time in 4 days

issue closedOfficeDev/office-js

on send addin is not invoked with new outlook feature of outlook vesion 16.42

on send addin is not invoked when outlook is used in "New outlook" feature for the version 16.42.

closed time in 4 days

dlpsysqa

issue closedOfficeDev/office-js

Dialog window does not support add-in for the new Outlook for Mac

Our clients are using new Outlook design 16.42 (20101102) Our Add-in uses functions: reply/replyAll/forward they open Dialog window(pop-up) and this window does not support add-ins. This is really critical issue, because our clients use pinned panel of add-ins to complete their workflow. Could you please clarify when can we use the add-in inside Dialog window for european region?

closed time in 4 days

Petryxasport

issue commentOfficeDev/office-js

Pinnable Add-In breaking Recipient Change notifications on Windows Desktop

We are able to repro this issue. We has been placed it in our backlog. Unfortunately, we have no timelines to share at this point. Internal tracking id : Office: 4565987

jak-hammond

comment created time in 5 days

issue commentOfficeDev/office-js-docs-pr

How Safe to Use Identity Token for Authentication?

The situation described above is mitigated for AppSource add-ins because we validate that there are no duplicate Source Location metadata. Thereby, add-ins deployed via AppSource do not have this issue.

vigen-b

comment created time in 6 days

issue closedOfficeDev/office-js

Outlook Add in pinning does not work in Shared folders - Outlook Office Webmail - SupportsPinning and SupportsSharedFolders

Summary

We have implemented an Outlook Add in that uses the SupportsPinning option from Req Set 1.5 and the SupportsSharedFolders option from Req Set 1.8. Both options are working fine in Windows Outlook Native client but malfunction in Outlook Office Webmail - https://outlook.office.com/mail/login.html (tested in latest Chrome, IE and Edge).

Steps to Reproduce, or Live Example

These are the steps:

  1. Open Shared Inbox in Outlook 365 Webmail - https://outlook.office.com/mail/login.html
  2. Select email
  3. Open Add-in
  4. Pin Add-in
  5. Select another email

Expected Behavior

Add-in window remains open

Current Behavior

Add-in window closes

The other strange thing is that if you then select another message, the add-in remains closed BUT if you select an email that you previously opened the add-in on, in the shared inbox, the add-in reopens.

No ItemChanged event is recorded.

Context

This is a problem as we are attempting to support both Shared Folders and Pinning. It's working perfectly in Native.

Your Environment

  • Platform: Windows 10
  • Host: Outlook Office Web - IE 11, Chrome Version 85.0.4183.121 (Official Build) (64-bit), Edge Version 85.0.564.70 (Official build) (64-bit)
  • Office version number: 365 Office Version 2008 13127.20408

closed time in 7 days

davyarris

issue commentOfficeDev/office-js

Outlook Add in pinning does not work in Shared folders - Outlook Office Webmail - SupportsPinning and SupportsSharedFolders

Closing issue for now since this is now in our backlog. Thanks!

davyarris

comment created time in 7 days

issue commentOfficeDev/office-js

New UI in Outlook for Mac. conversationId property isn't null when user creating new message

Unfortunately there isn't any way currently in the New Mac UI. For OWA/win32 clients you can use getComposeType .

lavrynenko-devpro

comment created time in 7 days

issue commentOfficeDev/office-js

on send addin is not invoked with new outlook feature of outlook vesion 16.42

Currently the feature on-send, you requested, is not a part of the product New Mac UI. We track Outlook add-in feature requests on our user-voice page. Please add your request there. Feature requests on user-voice are considered, when we go through our planning process.

dlpsysqa

comment created time in 7 days

issue commentOfficeDev/office-js

Dialog window does not support add-in for the new Outlook for Mac

Currently the feature add-ins inside pop-up window, you requested, is not a part of the product New Mac UI. We track Outlook add-in feature requests on our user-voice page. Please add your request there. Feature requests on user-voice are considered, when we go through our planning process.

Petryxasport

comment created time in 7 days

issue commentOfficeDev/office-js

Task Pane add-in shows 'disabled to keep you safe' starting October 15th 2020 in OWA (Exchange back-end)

Please update to the latest SU that was released on October 13, 2020. It has the code changes required for add-ins to work.

westconference

comment created time in 7 days

issue commentOfficeDev/office-js

Pinnable Add-In breaking Recipient Change notifications on Windows Desktop

The RecipientsChanged event registration is an item-only event. It doesn't persist after switching items. Looking at your code, it appears you are not re-registering the event after switching items. If that's the case, the behavior you are seeing is By Design.

jak-hammond

comment created time in 7 days

issue commentOfficeDev/office-js

Outlook Online, IE and old Edge, the displayDialogAsync method opens a popup window behind the main browser window

Moreover can you please share a repo video for our reference ?

DmitryKostochko

comment created time in 8 days

issue commentOfficeDev/office-js

Outlook Online, IE and old Edge, the displayDialogAsync method opens a popup window behind the main browser window

We are not able to reproduce the issue from our end, please update the browsers to the latest version and try again.

DmitryKostochko

comment created time in 8 days

issue commentOfficeDev/office-js

[Outlook ] Exchange can not deploy add-in to Mac Outlook user

  • Can you please confirm if you're using New Mac UI or Old Mac UI ?
  • Can you please share the Manifest file to "admin@a830edad9050849405E20081103.onmicrosoft.com" if possible, we'll try to reproduce the same from our end ?
SWei1234

comment created time in 8 days

issue commentOfficeDev/office-js

Outlook Add in pinning does not work in Shared folders - Outlook Office Webmail - SupportsPinning and SupportsSharedFolders

Thanks for reporting this issue. It has been put on our backlog. We, unfortunately, have no timelines to share at this point.

davyarris

comment created time in 8 days

issue commentOfficeDev/office-js

Getting the draft in new tap when sending a message

  • Thanks for letting us know the behavior, this can be a potential bug from our side. Please help us more with a repro video of the same, where you can edit the contents after send.
  • We are investigating as to why it is enabled for some clients and why not for others. Please make sure every client is on the same outlook-web version.
  • We are working on the bug with the documentation, the same will be updated soon.
sarea

comment created time in 8 days

issue commentOfficeDev/office-js

New UI in Outlook for Mac. conversationId property isn't null when user creating new message

Thanks for reporting this issue. It has been put on our backlog. We, unfortunately, have no timelines to share at this point.

lavrynenko-devpro

comment created time in 9 days

issue closedOfficeDev/office-js

Office.context.mailbox.item does not return recipient email address on copy-paste

When copy and paste pre-existing recipients, Office.context.mailbox.item returns recipients without email addresses. This library is used in a outlook add-in, as the recipient email address is not returned, the add-in prompts an error.

Expected Behavior

When copy and paste pre-existing recipients, Office.context.mailbox.item returns valid recipient email addresses.

Current Behavior

When copy and paste pre-existing recipients, Office.context.mailbox.item returns recipients without email addresses. image

Steps to Reproduce, or Live Example

Repro steps:

  1. Opens FindTime in outlook desktop

  2. Adding users to email compose image

  3. Cut “Cal Substrate Test 1” from Cc and paste to To field -> Warning shows up image

<!--- If not possible, or if the snippet requires extra explanation, provide repro steps below: -->

  • Additional details: Same behavior exists in AC Calendar View add-in

Context

There are approximately 700 api call failures due to this error.

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: PC desktop (only)
  • Host [Excel, Word, PowerPoint, etc.]: NA
  • Operating System: PC

closed time in 10 days

tido-ms

issue commentOfficeDev/office-js

Office.context.mailbox.item does not return recipient email address on copy-paste

We have fixed the bug and the fix should be available in build 16.0.13408 or later. When an updated build is available depends on the release channel a customer is on.

[Outlook Add-ins Engineering Team]

tido-ms

comment created time in 10 days

issue commentOfficeDev/office-js

ItemId on shared calendar item is empty

We are not able to reproduce the same on OWA. Do you see any error on console when you perform the above ?

bx-anil

comment created time in 11 days

issue commentOfficeDev/office-js

Getting error "Cannot set property 'permissionLevel' of undefined" when switching folders

We have fixed the bug and the fix should be available in build 16.0.12419.10000 or later of outlook-web.js file.

amiram

comment created time in 11 days

issue commentOfficeDev/office-js-docs-pr

Icon of Button not displayed in Outlook web

Thanks for reporting this issue regarding[Icon of Button. It has been put on our backlog. We, unfortunately, have no timelines to share at this point.

LokiMidgard

comment created time in 11 days

issue commentOfficeDev/office-js

Outlook Desktop, addFileAttachmentAsync with { isInline: true } adds inline attachment as usual/visible attachment

Sorry I don't have any timelines to share at this point.

DmitryKostochko

comment created time in 14 days

issue commentOfficeDev/office-js

Getting the draft in new tap when sending a message

@sarea The feature has been rolled out 100%. Could you please check if it is still reproducible?

sarea

comment created time in 14 days

issue commentOfficeDev/office-js

Outlook Desktop, addFileAttachmentAsync with { isInline: true } adds inline attachment as usual/visible attachment

Thank you for the detailed repro steps. I am able to repro this, and will open a bug on the backlog for the product team to look at.

I did notice some workarounds that may be useful in the meantime.

  1. Using body.setAsync() avoids the problem. (though I understand that setAsync and setSelectedDataAsync() serve different purposes)

  2. If you save the item. (either through item.saveAsync() or manually clicking the save icon) then the problem will be fixed.

  3. Sending the mail fixes the issue. (the recipients will not see the image in the attachment well)

DmitryKostochko

comment created time in 15 days

issue closedOfficeDev/office-js

Attachment API with blocked attachments

I have a question about Attachment API specification when attaching a file that is blocked by Outlook.

The behavior differs as described below. What is the expected behavior?

Windows Outlook: You can retrieve content with getAttachmentContentAsync() API after attaching a file with the EXE extension. Then, if you try to save the email, the warning screen appears as shown below.

unsafe_dialog

After you accept and save it, if you get a list of attachments using the getAttachmentsAsync() API, it is not in the list.

blocked_windows

OWA (Outlook on the web): If you attach a file with the EXE extension, it will look like the following screen.

blocked_owa

If you get a list of attachments using the getAttachmentsAsync() API, it is included in the list. In addition, executing the getAttachmentContentAsync() API to retrieve the content will succeed, but the base64 value will contain an empty or unknown value starting with "initial-scale=1.0,user-scalable=0"/><metaname=".

Note: I have only tested with Windows Outlook and OWA.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

closed time in 15 days

clavx

issue commentOfficeDev/office-js

Office.context.mailbox.item is null

  • Does your refresh do anything aside from just dump stuff out to the log? (from the code you pasted, it doesn't look like it, but I wanted to double check).

  • Instead of a Refresh button could you just do everything in the Initialize() function? The Item should never be null in a popped out item, unless it is accessed before the Initialize() has been called. Also just use OnReady() OR Initialize(). Not both. https://docs.microsoft.com/en-us/office/dev/add-ins/develop/initialize-add-in. It could be the fact that you are defining Initialize() inside OnReady is causing issues.

  • Does this happen on EVERY email of this customer?

  • Does the customer have an up to date version of your manifest add-in? Their Add-in looks out of date (it doesn't have the pinning icon)

  • Do other add-ins on this customers machine behave incorrectly? (notably if you use ScriptLab do the example scripts work?)

ArjunSureshKumar92

comment created time in 15 days

issue commentOfficeDev/office-js

Outlook Onsend addin is invoked multiple times after clicking send

Thanks for reporting this issue regarding OnSend. It has been put on our backlog. We, unfortunately, have no timelines to share at this point

Premsagar-lab

comment created time in 15 days

issue commentOfficeDev/office-js

Attachment API with blocked attachments

In the meantime you may want to see this article, in configuring Exchange to block outgoing mails with attachments that have certain extensions:

https://support.microsoft.com/en-us/help/2795329/how-to-block-a-message-from-being-sent-or-received-based-on-the-file-n

Would that combined with your solution meet your needs?

clavx

comment created time in 16 days

issue commentOfficeDev/office-js

Attachment API with blocked attachments

Thanks for giving your feedback. We have opened a backlog bug for the owning team to take a look at the difference. In general, we strive to make the api behave the same across different clients, however, the clients can sometimes implement specific features in different ways that require our API to also behave differently. I am not sure what bucket this falls into at this time.

Internal Tracking Id: 4531060

clavx

comment created time in 16 days

issue commentOfficeDev/office-js

Outlook Online, IE and old Edge, the displayDialogAsync method opens a popup window behind the main browser window

@DmitryKostochko we could not reproduce the issue with the test account provided by you using Internet Explorer on Windows 10. Could you please try updating your Internet Explorer to the latest version? Also, could you please try reproducing this issue on a different system than you mentioned earlier?

DmitryKostochko

comment created time in 16 days

issue commentOfficeDev/office-js

Outlook Online, IE and old Edge, the displayDialogAsync method opens a popup window behind the main browser window

@DmitryKostochko Could you please share the test account credentials with us at admin@a830edad9050849405E20081103.onmicrosoft.com

DmitryKostochko

comment created time in 16 days

issue commentOfficeDev/office-js

Loading of the bing map when clicking on the Address

@inderjitkr We are not able to reproduce the issue with the above code snippet. Could you please share a sample add-in with us for reproducing it?

inderjitkr

comment created time in 16 days

issue commentOfficeDev/office-js

[Firefox] Add-In Dialog is closing when clicked

Thanks for reporting this issue regarding Add-In Dialog. It has been put on our backlog. We, unfortunately, have no timelines to share at this point.

helmarjunior

comment created time in 16 days

issue commentOfficeDev/office-js

Outlook Online, IE and old Edge, the displayDialogAsync method opens a popup window behind the main browser window

@DmitryKostochko We are unable to reproduce this issue on our end. Could you please provide us a test account so that we can investigate this issue?

DmitryKostochko

comment created time in 16 days

issue commentOfficeDev/office-js

Mac outlook body.getAsync doesn't use ol/ul/li elements for lists

We have added this to our backlog but it is not a priority item at this moment. We will keep this thread posted when this work item gets picked.

fraziermork

comment created time in 16 days

issue commentOfficeDev/office-js

[Outlook ] Discard recurring meeting issue

We have fixed the bug and the fix should be available in the latest build. [Outlook Add-ins Engineering Team]

SWei1234

comment created time in 17 days

issue commentOfficeDev/office-js

2nd call to OfficeRuntime.auth.getAccessToken throws an error

@T-Roth Thanks for reporting this issue regarding getAccessToken. It has been put on our backlog. We, unfortunately, have no timelines to share at this point.

T-Roth

comment created time in 17 days

issue commentOfficeDev/office-js

Outlook Online, IE and old Edge, the displayDialogAsync method opens a popup window behind the main browser window

@DmitryKostochko We are unable to reproduce this issue on our end with the information you provided. Could you please share a sample add-in with us in order to reproduce the bug?

DmitryKostochko

comment created time in 17 days

issue commentOfficeDev/office-js

Displaying appointment form not working in Safari

@SpellCraft Could you please provide me the version of the safari browser you are using?

Also, could you try the following steps to narrow down the issue?

  1. Run the below code snippet and see if the issue is reproducible. Note: Do not add any params in the API call.
Office.context.mailbox.displayNewAppointmentForm({
 
});
  1. If the issue is not reproducible, try adding the params one by one to figure out which param is causing the issue.
SpellCraft

comment created time in 18 days

issue commentOfficeDev/office-js

Displaying appointment form not working in Safari

Could you please provide me the version of the safari browser you are using?

Also, could you try the following steps to narrow down the issue?

  1. Run the below code snippet and see if the issue is reproducible. Note: Do not add any params in the API call.
Office.context.mailbox.displayNewAppointmentForm({
 
});
  1. If the issue is not reproducible, try adding the params one by one to figure out which param is causing the issue.
SpellCraft

comment created time in 18 days

issue commentOfficeDev/office-js

Outlook Online, IE and old Edge, the displayDialogAsync method opens a popup window behind the main browser window

@DmitryKostochko Does this happen on multiple systems or is it on a specific system ? Can you confirm if you are repro the issue with sample code share above with displayInIframe: false? If Not, can you share sample add-in with which we can repro this issue at our end.

DmitryKostochko

comment created time in 20 days

issue commentOfficeDev/office-js-docs-pr

Icon of Button not displayed in Outlook web

@LokiMidgard The manifest looks right. Are you seeing IconUrl being used for button id="msgComposeMenuButton". How are you checking which icon is getting used? Is it possible to share a video with issue repro? Can you share stripped down version of you code for us to repro this at our end?

LokiMidgard

comment created time in 20 days

issue commentOfficeDev/office-js

Attachment API with blocked attachments

I would like to look at the difference in 2 angles:

  1. When does Outlook / OWA decides that an attachment is blocked? As you noted, OWA considers an attachment is blocked right away, and Outlook does so after saving. This is a difference in how each client recognizes blocked attachment and it is outside the scope of the Outlook addins API.

  2. What is the API behavior for blocked attachments? Outlook does not return blocked attachments via getAttachmentsAsync, but OWA does. getAttachmentContentAsync for OWA, however would return empty value for a blocked attachment. We can repro this issue and we are investigating.

Do you have scenario or requirement for your addin to expect these APIs to behave in a certain way?

clavx

comment created time in 21 days

issue commentOfficeDev/office-js

Office.context.mailbox.item does not return recipient email address on copy-paste

Thanks for reporting this issue regarding recipients API. It has been put on our backlog. We unfortunately have no timelines to share at this point

Internal tracking id: Office: 4516844

tido-ms

comment created time in 21 days

issue commentOfficeDev/office-js

Outlook for Mac, Office JS API does not work after switching accounts in From field

Thanks for reporting this issue regarding pinned add-ins. It has been put on our backlog. We unfortunately have no timelines to share at this point. However the New Outlook for Mac doesn't have this issue, which is currently available in our Insiders program. You can get access to it by signing up for the Insiders program here. Internal tracking id: Office: 1709532

DmitryKostochko

comment created time in 21 days

issue commentOfficeDev/office-js

Outlook Online, IE and old Edge, the displayDialogAsync method opens a popup window behind the main browser window

We are unable to repro the issue on our side with the code snippet shared by you. Can you try setting displayInIframe option to true and check if you still see the issue? You can try sample code var dialogOptions = { height:80, width:50, displayInIframe: true,}; Office.context.ui.displayDialogAsync(url, dialogOptions, displayDialogCallback); function displayDialogCallback(asyncResult){ console.log(asyncResult.status); }

DmitryKostochko

comment created time in 22 days

issue commentOfficeDev/office-js

Displaying appointment form not working in Safari

@SpellCraft The add-in you have shared works on fine on our end on Safari browser as well. Can you make sure settings for Safari browser does NOT block popups? You can check how to block/unblock popups on safari from Block pop-ups in Safari on Mac

SpellCraft

comment created time in 22 days

issue closedOfficeDev/office-js

item.to.getAsync removes unresolved mail addresses

Moving to a new issue from https://github.com/OfficeDev/office-js/issues/486#issuecomment-534160039

In the case of calling Office.context.mailbox.item.to.getAsync(callback); when there are only contacts who are not resolved, Outlook is removing those contacts from the To recipient list.

I've checked in the Outlook Web client and it does not remove the unresolved smtp email address.

Expected Behavior

Calling Office.context.mailbox.item.to.getAsync() should return resolved recipients without side effects

Current Behavior

Unresolved recipients are removed

Steps to Reproduce, or Live Example

  • Open new email message
  • Manually type in an smtp email address, hit esc to switch focus
  • Invoke Office.context.mailbox.item.to.getAsync(callback); in an add-in
  • Observe the smtp email address has been removed

Context

When our add-in is invoked by the user we call Office.context.mailbox.item.to.getAsync(callback) to get the current state of to recipients. Depending on how the user has input the smtp mail address this information will be removed.

Your Environment

  • Platform [PC desktop, Mac, iOS, Office Online]: PC Desktop
  • Host [Excel, Word, PowerPoint, etc.]: Outlook
  • Office version number: 1908 (build 16.0.11929.20288)
  • Operating System: Windows 10 (1903)
  • Browser (if using Office Online): ______

closed time in 23 days

rgmills

issue commentOfficeDev/office-js

item.to.getAsync removes unresolved mail addresses

We have fixed the bug and the fix should be available in build 16.0.13330.10000 or later. Depending on the release channel a customer is on, getting an updated build can take anywhere from 4-8 weeks.

rgmills

comment created time in 23 days

issue commentOfficeDev/office-js

[Firefox] Add-In Dialog is closing when clicked

@helmarjunior We are unable to repro this issue on our side.

  1. Is it possible to share sample add-in so that we can repro this issue on our side?
  2. Does Add-in dialog closes on clicking anywhere in the dialog or just on clicking the text field ?
  3. Can you try this sample contextual add-in once and check if you face same issue?
helmarjunior

comment created time in 23 days

PullRequestReviewEvent

issue commentOfficeDev/office-js

[Outlook ] custom properties disappeared on Mac shared calendar

@SWei1234 When this issue repros can you check if you are able to get the custom properties for same meeting/appointment from Outlook on Web? This will help us ensure whether custom properties are set properly.

SWei1234

comment created time in 23 days

issue commentOfficeDev/office-js

Mac Outlook: client add-in not support prompt for cert selection when using adfs to doing sso login

We have fixed the bug and the fix should be available in latest build. Depending on the release channel a customer is on, getting an updated build can take anywhere from 4-8 weeks.

hello-chenchen

comment created time in 23 days

IssuesEvent

Pull request review commentOfficeDev/office-js-docs-pr

[Outlook] (delegate) Add REST guidance; note message compose conditions

 The following example shows the `SupportsSharedFolders` element set to `true` in You can get an item's shared properties in Compose or Read mode by calling the [item.getSharedPropertiesAsync](../reference/objectmodel/preview-requirement-set/office.context.mailbox.item.md#methods) method. This returns a [SharedProperties](/javascript/api/outlook/office.sharedproperties) object that currently provides the delegate's permissions, the owner's email address, the REST API's base URL, and the target mailbox.  > [!IMPORTANT]-> In a delegate scenario, your add-in can use REST but not EWS, and the add-in's permission must be set to `ReadWriteMailbox` to enable REST access to the owner's mailbox.+> - In a delegate scenario, your add-in can use REST but not EWS, and the add-in's permission must be set to `ReadWriteMailbox` to enable REST access to the owner's mailbox.+> - In Message Compose mode, [getSharedPropertiesAsync](/javascript/api/outlook/office.messagecompose#getsharedpropertiesasync-options--callback-) is not supported in Outlook on the web or Windows unless the following conditions are met.+>+>    - The owner shares at least one mailbox folder with the delegate.+>    - 1. The delegate saves a draft message then moves it from their own **Drafts** folder to the shared folder. The delegate opens the draft from the shared folder then continues composing.+>      <br>OR+>      1. The delegate replies to or forwards an email in the shared folder.

This is confusing :) Why don't we just simply say that The delegate has a draft message in the folder shared with you?

ElizabethSamuel-MSFT

comment created time in 23 days

PullRequestReviewEvent
PullRequestReviewEvent

issue commentOfficeDev/office-js

[Outlook Add-in] Fetch in UI-Less doesn’t work

I have just tried a fetch request in UI-less and that is working correctly in Desktop Outlook for Windows. There should not be anything specific with ui-less that prevents fetch. A few things to check:

  • have you tried the fetch request from a task pane?
  • Could you check if the server response is expected?

Another note: for Office in Windows, older versions of office uses an IE based web control for addins, and fetch is not supported in IE. See https://developer.microsoft.com/en-us/office/blogs/microsoft-edge-webview-for-office-add-ins/ on the Windows and Office versions that have Edge webview

ghivert

comment created time in 23 days

issue commentOfficeDev/office-js

Windows Outlook: internetHeaders.setAsync being ignored in on-send hook

Thanks for reporting this issue regarding internetHeaders.setAsync in on-send. It has been put on our backlog. We unfortunately have no timelines to share at this point. Internal tracking id: Office:4492614

jak-hammond

comment created time in 24 days

Pull request review commentOfficeDev/office-js-docs-pr

[Outlook] (delegate) Add REST guidance; note message compose conditions

 The following example shows the `SupportsSharedFolders` element set to `true` in You can get an item's shared properties in Compose or Read mode by calling the [item.getSharedPropertiesAsync](../reference/objectmodel/preview-requirement-set/office.context.mailbox.item.md#methods) method. This returns a [SharedProperties](/javascript/api/outlook/office.sharedproperties) object that currently provides the delegate's permissions, the owner's email address, the REST API's base URL, and the target mailbox.  > [!IMPORTANT]-> In a delegate scenario, your add-in can use REST but not EWS, and the add-in's permission must be set to `ReadWriteMailbox` to enable REST access to the owner's mailbox.+> - In a delegate scenario, your add-in can use REST but not EWS, and the add-in's permission must be set to `ReadWriteMailbox` to enable REST access to the owner's mailbox.+> - In Message Compose mode, [getSharedPropertiesAsync](/javascript/api/outlook/office.messagecompose#getsharedpropertiesasync-options--callback-) is not supported in Outlook on the web or Windows unless the following conditions are met.+>    1. The owner shares at least one mailbox folder with the delegate.+>    2. The delegate saves a draft message then moves it from their own **Drafts** folder to the shared folder.

Ideally they don't need to move it, if you hit reply in your inbox and hit ctrl+s, there will be a draft shown in the inbox itself too but I believe this is still ok

ElizabethSamuel-MSFT

comment created time in 24 days

Pull request review commentOfficeDev/office-js-docs-pr

[Outlook] (delegate) Add REST guidance; note message compose conditions

 The following example shows the `SupportsSharedFolders` element set to `true` in You can get an item's shared properties in Compose or Read mode by calling the [item.getSharedPropertiesAsync](../reference/objectmodel/preview-requirement-set/office.context.mailbox.item.md#methods) method. This returns a [SharedProperties](/javascript/api/outlook/office.sharedproperties) object that currently provides the delegate's permissions, the owner's email address, the REST API's base URL, and the target mailbox.  > [!IMPORTANT]-> In a delegate scenario, your add-in can use REST but not EWS, and the add-in's permission must be set to `ReadWriteMailbox` to enable REST access to the owner's mailbox.+> - In a delegate scenario, your add-in can use REST but not EWS, and the add-in's permission must be set to `ReadWriteMailbox` to enable REST access to the owner's mailbox.+> - In Message Compose mode, [getSharedPropertiesAsync](/javascript/api/outlook/office.messagecompose#getsharedpropertiesasync-options--callback-) is not supported in Outlook on the web or Windows unless the following conditions are met.+>    1. The owner shares at least one mailbox folder with the delegate.+>    2. The delegate saves a draft message then moves it from their own **Drafts** folder to the shared folder.+>    3. The delegate opens the draft from the shared folder then continues composing. **Note**: After the message has been sent, it's usually found in the delegate's **Sent Items** folder.

points 2 & 3 both refer to the delegate, should 3 be delegatee?

ElizabethSamuel-MSFT

comment created time in 24 days

PullRequestReviewEvent
PullRequestReviewEvent

issue commentOfficeDev/office-js

Outlook for Mac, shared mailbox, Office JS API does not work

It should be available in next insiders build. Check more about insiders build here.

DmitryKostochko

comment created time in 24 days

issue commentOfficeDev/office-js

Outlook for Mac, shared mailbox, Office JS API does not work

@rinfex-holfer We have fixed this bug for event on shared calendar recently. Depending on the release channel a customer is on, getting an updated build can take anywhere from 4-8 weeks.

DmitryKostochko

comment created time in 25 days

issue commentOfficeDev/office-js

Android Outlook Add-in not support security verify with Android Intune App

Hi @hello-chenchen , we are unable to reproduce this on our end. Is it possible for us to get a test account where this bug is reproduced? If so, can you email account details to admin@a830edad9050849405E20081103.onmicrosoft.com?

hello-chenchen

comment created time in 25 days

Pull request review commentOfficeDev/office-js-docs-pr

[Outlook] (delegate) Add REST guidance; note message compose conditions

 The following example shows the `SupportsSharedFolders` element set to `true` in You can get an item's shared properties in Compose or Read mode by calling the [item.getSharedPropertiesAsync](../reference/objectmodel/preview-requirement-set/office.context.mailbox.item.md#methods) method. This returns a [SharedProperties](/javascript/api/outlook/office.sharedproperties) object that currently provides the delegate's permissions, the owner's email address, the REST API's base URL, and the target mailbox.  > [!IMPORTANT]-> In a delegate scenario, your add-in can use REST but not EWS, and the add-in's permission must be set to `ReadWriteMailbox` to enable REST access to the owner's mailbox.+> - In a delegate scenario, your add-in can use REST but not EWS, and the add-in's permission must be set to `ReadWriteMailbox` to enable REST access to the owner's mailbox.+> - In Message Compose mode, this API is not supported in Outlook on the web or Windows unless the following conditions are met.+>    1. The owner shares their **Drafts** folder with the delegate.+>    2. The delegate saves a draft message then moves it from their own **Drafts** folder to the shared **Drafts** folder.+>    3. The delegate opens the draft from the shared **Drafts** folder.

If you;d like we can also provide an example of this scenario

ElizabethSamuel-MSFT

comment created time in a month

Pull request review commentOfficeDev/office-js-docs-pr

[Outlook] (delegate) Add REST guidance; note message compose conditions

 The following example shows the `SupportsSharedFolders` element set to `true` in You can get an item's shared properties in Compose or Read mode by calling the [item.getSharedPropertiesAsync](../reference/objectmodel/preview-requirement-set/office.context.mailbox.item.md#methods) method. This returns a [SharedProperties](/javascript/api/outlook/office.sharedproperties) object that currently provides the delegate's permissions, the owner's email address, the REST API's base URL, and the target mailbox.  > [!IMPORTANT]-> In a delegate scenario, your add-in can use REST but not EWS, and the add-in's permission must be set to `ReadWriteMailbox` to enable REST access to the owner's mailbox.+> - In a delegate scenario, your add-in can use REST but not EWS, and the add-in's permission must be set to `ReadWriteMailbox` to enable REST access to the owner's mailbox.+> - In Message Compose mode, this API is not supported in Outlook on the web or Windows unless the following conditions are met.+>    1. The owner shares their **Drafts** folder with the delegate.+>    2. The delegate saves a draft message then moves it from their own **Drafts** folder to the shared **Drafts** folder.+>    3. The delegate opens the draft from the shared **Drafts** folder.

This makes it sound like only drafts folders are supported which is not true. I would suggest changing this to the following: Any message compose(new email, reply, forward) is a new email item from your main mailbox and not the shared mailbox. Changing the from address on the compose form does not make it a shared item. A compose item is shared only when the folder in which this compose item resides is shared with you. Instead of the last line we could also use: Only when a compose item resides in a folder that is shared with you is the item considered as 'shared'.

ElizabethSamuel-MSFT

comment created time in a month

PullRequestReviewEvent
PullRequestReviewEvent

issue commentOfficeDev/office-js

Outlook web add-in load error "This add-in could not be started ..."

We would like to determine whether this is specific to Outlook or common across all Office clients. Can your customer try installing any add-in from the store such as Scriptlab in another client such as Microsoft Word or Excel?

jesyxue

comment created time in a month

issue commentOfficeDev/office-js

[Outlook ] custom properties disappeared on Mac shared calendar

@SWei1234 we are trying to understand this issue better. Is this happening for specific accounts across devices (the same account installed on multiple devices reproduces the same bug)? Or is it happening on particular devices irrespective of accounts (bug reproduces for multiple accounts on the same device)?

SWei1234

comment created time in a month

issue commentOfficeDev/office-js

ItemId on shared calendar item is empty

Thank you for reporting this issue. This has been put in our backlog. We unfortunately have no timelines to share at this point. Internal tracking id: Office:4501807

bx-anil

comment created time in a month

issue closedOfficeDev/office-js

Outlook Desktop, Outlook for Mac, setSelectedDataAsync produces incorrect formatting for bulleted and numbered lists

In an Outlook add-in for compose mode, we use the Office JS API to fill in email fields. The setSelectedDataAsync method inserts HTML with incorrect markup.

Expected Behavior

The setSelectedDataAsync method should work as expected.

Current Behavior

The setSelectedDataAsync method ignores markup and produces a list with no bullets/numbers and with an extra empty line in between.

Steps to Reproduce, or Live Example

Create a new email in Outlook Desktop or Outlook for Mac and execute the code below.

Office.context.mailbox.item.setSelectedDataAsync( '<ul style="margin-left:0cm;">' + ' <li><span>Line 1</span></li>' + ' <li><span>Line 2</span></li>' + ' <li><span>Line 3</span></li>' + '</ul>', { coercionType: Office.CoercionType.Html }, (result) => { } );

  • Additional details:
    1. Everything seems to work fine in Outlook Online.

Context

Your Environment

  • Platform: PC desktop, Mac
  • Host: Outlook
  • Office version number: Microsoft Outlook Version 2008 (build 13127.20296), Microsoft Outlook for Mac Version 16.40 (20081201)
  • Operating System: Windows 10 version 2004, macOS Catalina Version 10.15.6
  • Browser (if using Office on the web): ______

Useful logs

image

closed time in a month

DmitryKostochko

issue commentOfficeDev/office-js

Outlook Desktop, Outlook for Mac, setSelectedDataAsync produces incorrect formatting for bulleted and numbered lists

We have fixed the bug and the fix should be available in build 16.41 for Mac and build 13231 for Windows or later. Depending on the release channel a customer is on, getting an updated build can take anywhere from 4-8 weeks.

DmitryKostochko

comment created time in a month

issue commentOfficeDev/office-js

Several properties are missing from window.Office.context.mailbox on "New Outlook" for Mac

Hi @modestfake , thanks for reporting these issues.

Addressing each issue individually:

1. mailbox.item.itemId is empty - we have already fixed this issue for Gmail accounts. We'll let you know when the fix is in Insider Fast. 2. mailbox.item.internetMessageId is different - we are able to reproduce this bug. We have added it to our backlog. 3. mailbox.restUrl is empty - We are aware of this issue and it's already in our backlog. We'll let you know when we have fixed it. 4. attachmentId is different - same here, we are aware of this issue, and it is already in our backlog. 5. userProfile.accountType is different - we are able to reproduce this issue, and it is due to subtle changes in New Outlook. Could you explain if this is problematic for a scenario you're trying to accomplish?

modestfake

comment created time in a month

issue commentOfficeDev/office-js

Office.context.mailbox.item.recurrence.getAsync throws error

Hi, looks like there are multiple issues being talked about here, causing confusion.

  1. recurrence.getAsync throws error / returns null - This issue has been fixed from our end on OWA. recurrence.getAsync() shouldn't be returning null anymore. We aren't able to reproduce this bug from our end any more. If you're in organizer mode, make sure you call recurrence.getAsync() and not item.recurrence.

  2. Discarding a meeting still saves it - This is not related to the original issue, so please create a new issue for it.

gguiceaccru

comment created time in a month

issue closedOfficeDev/office-js

Unable to Pin the TaskPane

I want to Pin my Outlook Add-Ins to maintain the Persistency and Consistency while it is being used.

I want to pin my Task pane so that while navigating to others mail it should remain open.

I got some support code to Pin the task pane from Microsoft Doc but not working. I used <SupportsPinning> tag as option 'true'. It supposed to Work as per Microsoft but showing Version Overrides issue.

LINK - https://docs.microsoft.com/en-us/office/dev/add-ins/outlook/pinnable-taskpane

Environment Platform - Visual CSharp and JQuery Host - Microsoft Outlook Exchange OutlookError

Operating System - Windows 10 Office version number: Microsoft 365 outlook web version Browser Google Chrome

Useful logs

This app can't be installed. The manifest file doesn't conform to the schema definition. The element 'Action' in namespace 'http://schemas.microsoft.com/office/mailappversionoverrides' has invalid child element 'SupportsPinning' in namespace 'http://schemas.microsoft.com/office/mailappversionoverrides'...

closed time in a month

inderjitkr

issue commentOfficeDev/office-js

Unable to Pin the TaskPane

@inderjitkr The "Action" element cannot occur directly as a child to VersionOverrides element. It should be under "Group" or "Menu". In your manifest, you should copy the entire part under "VersionOverrides1_0" into "VersionOverrides1_1", and make further changes (adding the SupportsPinning tag), instead of just adding parts that you want to override.

When VersionOverrides1_1 is supported by the client, it will completely ignore the VersionOverrides1_0 element.

Also, you should probably remove "SupportsPinning" from 1_0 as that will give a validation error.

inderjitkr

comment created time in a month

IssuesEvent

issue commentOfficeDev/office-js

Access Storage from Dialog opened by Custom Functions

Reopening this since the original question was about Excel. Sorry about that.

SWDevB

comment created time in a month

issue closedOfficeDev/office-js

Access Storage from Dialog opened by Custom Functions

There is a dialog I open from task pane or custom functions runtime and this dialog has an input which's data should be stored inside the OfficeRuntime.storage to be available for task pane and custom functions run time as well.

I at first tried to directly write into the storage from the dialog itself and this worked fine while running the add-in in Excel online. But when I try to run it in Excel desktop, accessing the storage doesn't work.

It seems recent updates changed the behavior of Office, because now it seems Office seems not to be initialized at all for a this kind of dialog. So now I get the "please side load" message.

Expected Behavior

Since it works in Excel Online I would expect it to also work in Excel Desktop. If this actually isn't supported I would at least have expected it to behave the same way in both versions. I am aware of the different run times used, but the differences between behavior of online and desktop excel versions are really distracting...

Current Behavior

In Excel online the dialog is able to access the storage in Excel desktop it isn't

Steps to Reproduce, or Live Example

  1. Open dialog via task pane: Office.context.ui.displayDialogAsync
  2. Open dialog via custom functions runtime: OfficeRuntime.displayWebDialog
  3. Access Stroage via OfficeRuntime.storage.getItem

Context

I try to accomplish to get a URL from the user where to connect to and of course I don't want to ask the unser not several times for the same information.

So i changed the behavior and read from the store before opening the dialog and set it via request get parameter (what find kind of ugly myself) and return the value via Office.context.ui.messageParent. That's what the article about authorization for custom functions suggests (a least in the graphing to show the connection of the different run times)

Your Environment

Platform [PC desktop, Mac, iOS, Office Online]: PC Host [Excel, Word, PowerPoint, etc.]: Excel Office version number: 1906 (Build 11727.20210 Click-to-Run) Operating System: Windows 10 Enterprise 1903 18362.239 Browser (if using Office Online): Chrome or Edge (running in both of them)

Useful logs

Initially I got the following error: "name":"Internal Error", "message":"An internal error has occurred.", "code":5001 Currently I get no initialization of office and if I skip that I of course get 'OfficeRuntime' is not defined Stackoverflow question https://stackoverflow.com/questions/56807881/accessing-officeruntime-storage-within-an-dialog-in-office-js-excel-add-in

closed time in a month

SWDevB
more