Outlook 网络插件:如何抑制单击按钮时出现的默认通知消息

Outlook web Addin: how to suppress the default notification message comes up when clicking on the button

我们正在尝试在用户单击我们的 Outlook 网络插件按钮并进行以下调用时显示自定义消息,

  Office.context.mailbox.item.notificationMessages.replaceAsync( 
        'progress', {type: 'progressIndicator', message: msg});

但是,在我们的消息出现之前,总是会显示一条默认消息“[MyAddinName] 正在处理您的 [MyButtonLabel] 请求”。有没有办法抑制该默认消息?

我一直在阅读 Office dev center 上的文档,但找不到任何相关内容。需要一些建议。谢谢!

当加载项加载时,初始进度通知显示 UI-less 加载项命令。加载项开发人员无法禁止此通知,但是添加通知会在加载项加载时自动删除默认加载通知。