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
2

Upvotes

Upvote

 Sep 21 2022
1 Comments (1 New)
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.

Comments
Copper Contributor

Yes - I can see the documentation also and this while explaining the issue I am seeing, doesn't really make sense to me.

Microsoft - Why wouldn't this work ? Close the reply/draft ? It is a separate item after all, so the close would only need to close the reply not the original.