【发布时间】:2020-11-18 01:53:05
【问题描述】:
在我的 Outlook 插件中,我尝试调用 Office.js API 来保存一些会议信息。根据 MSFT 文档,我使用 Office.loadCustomPropertiesAsync 来做。
我的情况是:
- 创建系列会议并使用插件设置自定义属性。
- 邀请一些与会者并发送。
- 将一个实例更改为异常并打开它。
- 打开插件获取我之前保存的自定义属性。
我的预期结果是 Add-in 可以得到它。但实际上,它返回 null。此外,当我打开一个事件或整个系列会议时,它也很有效。
这是我的示例代码:
Office.context.mailbox.item.loadCustomPropertiesAsync(function(asyncResult){
var customProps = asyncResult.value;
console.log('property = '+JSON.stringify(customProps));
var myProp = customProps.get("myProp");
customProps.set("otherProp", "value");
customProps.saveAsync(function(result){
console.log('save result'+JSON.stringify(result));
});
});
这个问题只出现在最新的 Win Outlook 中(2005 年每月频道之后)。它在 Office Online 和 Mac Outlook 中运行良好。
【问题讨论】:
标签: outlook office365 office-js outlook-web-addins