Problem with O365 add-in when opening MS-Office client using MS-Teams Open In Desktop App option

Copper Contributor

Using the Office Add-in API Office.UI.displayDialogAsync() with “displayInIframe=false”, the URL page was opened in a new tab on a default browser. However, the dialog couldn’t communicate back to the parent by calling Office.UI.messageParent() in desktop MS Teams. Is this expected behavior? Here is my setup: I have an add-in in desktop MS Teams Word that calls Office.UI.displayDialogAsync() to open a page in a dialog from a task pane. I can’t use displayInFrame= true to open the page in iframe due to security reason for the login page. Instead, I need to use displayInFrame=false. The page gets to be opened in a new tab in a default browser such as Chrome. After that, calling Office.UI.messageParent() to try to communicate back to the Word task pane (parent window) returns no response. The task pane in MS Teams Word couldn’t receive the call. The same exact add-in works fine in the web version of MS Teams Word and desktop version of MS Word. I like to know if the API is supported in the desktop version of MS Teams Word environment. If it’s not supported, is there a work around for this issue?

2 Replies

@praveenkumar_rajan : Hi praveen, We are investigating this internally if this issue related to MS teams developer questions. I will update you soon.

@praveenkumar_rajan : Hi, I just received an update from engineering team that there is fix coming up soon and its under development. We don't have ETA to share. Thanks.

 

Thanks,

Manish Chitre

--------------------------------------------------------------------------------------------------------------------------------------------

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.