girtsegr's avatar
girtsegr
Copper Contributor
Feb 24, 2026
Status:
New

SmartAlerts - provide a hook to get back into addins code after 'don't send'

When addin takes a while to process mail item, and user selects don't send option on soft block dialog, it would be useful to have a way to hook back into addins code. Example - if during that processing time there was any change done to the mail item, such as notifications displayed to user, they will remain visible for the user, even though send is cancelled. This is because it is not possible to clear notifications after this dialog is actioned.

It is not unique to just notifications, it includes any other changes. Essentially, it would be good to have a way to get back into addins code for a clean up. Better user experience.

 

  • Current behavior:

User sends mail item that takes a while to process, some notifications are displayed to user that Add-in is processing something, soft block dialog gets displayed, user selects 'Don't send', send process is stopped and mail item is reset back to initial state - no notification is displayed.

  • Expected behavior:

User sends mail item that takes a while to process, some notifications are displayed to user that addin is processing something, soft block dialog gets displayed, user selects 'Don't send', send process is stopped and mail item is in the same state that addin left it in - notifications are visible.

 

Our addin processes mail item, shows users notifications of where we are in process. Additionally our addin could change the content on mail item itself. If user can select 'Don't Send', then it would be a desirable to have a way to hook back into Add-ins code, and perform some kind of cleanup, so that there would be no hanging notifications or even changed body of the mail item.

No CommentsBe the first to comment