我试图在创作时对Outlook消息进行验证,我在github:https://github.com/OfficeDev/Outlook-Add-in-On-Send.git中找到了演示
但我需要每3秒进行一次自动验证,或者单击“空格”选项卡( github演示只在单击“send”时触发)。
这就是我现在得到的,我如何改进它以满足我的需要?
JS:
var mailboxItem;
Office.initialize = function (reason) {
mailboxItem = Office.context.mailbox.item;
}
function validateBody(event) {
mailboxItem.body.getAsync("html", { asyncContext: event }, validatioFunction);
}XML:
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<ExtensionPoint xsi:type="Events">
<Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="validateBody" />
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>发布于 2020-01-12 17:43:50
事件(ItemSend)扩展点不适合长期运行的任务,您可以在外接程序中添加一个MessageComposeCommandSurface扩展点,并继续轮询车身更改。
Outlook不提供用于侦听body changed事件的API。我们跟踪我们的用户语音页面上的特性请求。看起来,您想要的功能已经被其他人请求了。请投票给现有请求。当我们通过我们的计划过程时,用户声音上的特征请求会被考虑.
有用的链接:构建第一个Outlook外接程序
https://stackoverflow.com/questions/59704292
复制相似问题