OfficeDev / office-js

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.
https://learn.microsoft.com/javascript/api/overview
Other
689 stars 95 forks source link

Office add-in fails when using the “Cancel Send” feature in Outlook on the web #4999

Open mailchecktool-admin opened 1 month ago

mailchecktool-admin commented 1 month ago

The Outlook add-in is unstable with shared mailboxes. The following are the current confirmed problems. If two users access a shared mailbox with an add-in installed at the same time and launch the add-in at the same time, there is a problem with the add-ins working in tandem. If user A and user B access the add-in at the same time, when A closes the add-in, B will also close the add-in. Both User A and User B are using a shared mailbox in a separate tab in Outlook on the web from “Open another mailbox”. If two users are operating an add-in at the same time, have any problems been reported where the add-ins work in tandem?

10/24 Postscript. We have found that this problem occurs when using an Office add-in that uses the ItemSend event and the OWA [Cancel Send] function is used. Here are the steps to reproduce the issue. Set the [Cancel Send] to 10 in the Outlook on the web settings.

  1. Upload “manifest.xml” to Outlook on the web and install the add-in (the XML file is saved in sample.zip).
  2. Open a command prompt and navigate to the corresponding directory.
  3. Run “npm install”.
  4. Run “npm run dev-server”.
  5. Open Outlook on the web.
  6. Install the add-in from Extensions.
  7. Create a new email and click the “Send” button.
  8. The Office add-in will start and a sample screen will be displayed. *It is a simple one that a button is displayed on the dialog.
  9. Click “close(true)” on the dialog to send the e-mail.
  10. as you have set in Outlook, the mail will wait for 10 seconds to be sent.
  11. during these 10 seconds, compose a new e-mail and click the “Send” button. *Sending a draft email is also fine.
  12. the Office add-in will start and a sample screen will appear. *Please keep the popup open.
  13. when the waiting email that was being sent first is sent, the open popup will close.

Is this a specification when sending ItemSend events? This problem is reproduced when using a personal email address or when using a shared mailbox. On a shared mailbox, when two users access the mailbox at the same time, mail may be sent at the same time, and this event is likely to occur.

I am storing the sample add-in. sample add-in program https://github.com/mailchecktool-admin/Office-addin-sample/tree/main

mailchecktool-admin commented 1 month ago

@exextoc I have added a new finding about this event to my submission. Please check the following 10/24 postscript

patilganesh-msft commented 1 month ago

Hi OP, thank you for reporting the concern. This is an known gap in the experience. While shared mailboxes allow multiple users to access a common mailbox, our team does not provide official support for add-ins in shared mailboxes when opened in a new tab. At this time, we recommend opening a shared mailbox in the same tab to ensure add-ins work as expected. Thank you.

patilganesh-msft commented 1 week ago

Hi @mailchecktool-admin ,

Since this is a known gap in the experience with shared mailbox add-ins, we have created the bug in our backlog; however the timeline can't be clarified at the moment. Internal tracking Id: #5021601

mailchecktool-admin commented 2 days ago

@patilganesh-msft This issue occurs not only with shared mailboxes but also with individual user mailboxes. I apologize for the confusion caused by the initial description, which may have been misleading. A key characteristic of this issue is that it happens when a second email is sent quickly after the first one.