Office JavaScript API for Outlook - 如何在位置更改时刷新我的 Web 插件?

Office JavaScript API for Outlook - how can I refresh my web add-in when location changes?

我正在研究 Office JavaScript API for Outlook 的可能性。我想要做的是拥有一个网络加载项,当用户将某人添加到 "to" 字段或更改 "location" 字段创建新约会时,它能够自行刷新(重新加载相关内容) .

我找到了 read/write 这些字段的方法,例如:

Office.context.mailbox.item.subject.getAsync(function (result) {
    var subject = result;
});

但无法找到以某种方式绑定到它们上的 'changed' 事件的解决方案。 Office JavaScript API 和 Outlook 是否完全可行?

此致, 卡帕

虽然您可以在 Excel 和 Word 中创建绑定(请参阅:http://dev.office.com/reference/add-ins/shared/bindings.bindings), you cannot in Outlook as of this moment, unfortunately. You could periodically poll (not a great solution), or try to make sure the user adds recipients through the add-in, you can from there on set the recipients in the email as well(see: http://dev.office.com/docs/add-ins/outlook/get-set-or-add-recipients)。

杰西