Office.js dialog makes Outlook hang after 5 minutes

最后都变了- 提交于 2019-11-28 02:11:18

问题


I'm running a sample Outlook add-in dialog application. It just displays a dialog with 2 buttons, does not have any logic nor it makes any calls to REST service.

If more than 5 minutes elapse before closing the dialog, Outlook's compose frame becomes unresponsive and the user is forced to refresh the entire page

  1. Is this behavior expected?
  2. Is the timeout configurable?
  3. Any recommendations how to handle such situation and provide the best user experience?

回答1:


From your screenshot and the code you linked to, it looks like you're using an On Send add-in.

Is this behavior expected?

No, the behavior you're seeing is a bug. Specially, OWA shouldn't stop responding after 5 minutes.

Thank you for reporting this issue. We apologize for any frustration or inconvenience we have caused with this issue. Please be patient as we work to fix this issue as quickly as we can.

What is the expected behavior?

For Execute Function add-in commands, the add-in is automatically closed after 5 minutes, if event.completed() hasn't been called before then. Any open dialog is closed at that time.

For On Send add-ins, my understanding is the behavior should be the same as Execute Function, except that the email wouldn't be sent in the case of a timeout.

Is the timeout configurable?

It's not configurable. The 5-minute timeout applies to all Execute Function and On Send add-in commands.

Any recommendations how to handle such situation and provide the best user experience?

For recommendations, assuming that OWA doesn't stop responding, I don't think there is a single best option, and it depends on your On Send scenario.



来源:https://stackoverflow.com/questions/46139879/office-js-dialog-makes-outlook-hang-after-5-minutes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!