I am currently invoking a dialog from a button on the ribbon in Outlook. The dialog works fine without any issues, but the message "...add-in is working on your request" appears even after the dialog is opened/closed.
Here is how the dialog is invoked..
function openDialog(event) {
Office.context.ui.displayDialogAsync('https://xxxx.azurewebsites.net', { height: 80, width: 92 },
function (asyncResult) {
dialog = asyncResult.value;
dialog.addEventHandler(Office.EventType.DialogMessageReceived, processMessage);
event.completed();
}
);
}
function processMessage(event) {
event.completed();
}
How to avoid this message ? Tried to close the event in the EventHandler callback(processMessage) as well but didn't work.