Is there a way to detect that a user has closed the smart alert dialog box?

Mark 0 Reputation points
2025-04-15T15:19:21.7+00:00

Let's say my event-based addin caused this dialog to appears after user clicks send because they haven't fulfilled certain conditions.

Image

Ref: https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/onmessagesend-onappointmentsend-events?tabs=windows#soft-block

I would like a function in the plugin's taskpane to run immediately after user has closed the dialog e.g. by clicking 'x' or Don't Send.

Is it possible? If not, are there plans to enable this and where can I read more of it?

P.s., I'm developing my addin in React Typescript.

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,058 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.