Ability to close inline replies in Outlook Desktop with Office.js's item.close() method

Ability to close inline replies in Outlook Desktop with Office.js's item.close() method
1

Upvotes

Upvote

 Sep 21 2022
0 Comments 
New

I work on an add-in for Microsoft Outlook, and the add-in includes the ability for the user to send a message from our taskpane.  We would like the open draft to always close once it has been sent.  We’ve been using Office.context.mailbox.item.close() to close the draft, and this works great in Outlook Desktop for Windows when the user is composing a new draft.  However, for inline replies this method does not work.  We must tell the user that the message has been sent successfully and that they need to navigate away from the draft.

 

I see here in the office.js documentation that this behavior is expected.

 

Are there any plans to allow inline replies to be closed with this method in the future?

 

Thank you.