Is it possible to change the On-Send default message?

Jean Paul Larach 31 Reputation points Microsoft Employee
2023-05-16T00:57:56.5166667+00:00

Is it possible to change the On-Send default message using the Outlook Add-in API?

I have an add-in where I am stopping the email from being sent using:

currentEvent.completed({ allowEvent: false });

I tried doing this, but it didn't work. Does anyone know the "key" Outlook uses so I can replace that message?

Office.context.mailbox.item.notificationMessages.replaceAsync("onSendEvent", {
          type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
          message: "Custom On-Send Message",
          persistent: false
        });

User's image

Outlook
Outlook
A family of Microsoft email and calendar products.
1,032 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
2,435 questions
0 comments No comments
{count} votes