在 Outlook Web 加载项中,我为邮件项设置了一些自定义属性,这些属性只持续到同一天,第二天当我再次为同一个邮件项启动加载项时,所有自定义属性都消失了:
我正在附加我的控制台日志图像
一段时间后或第二天(我不知道它会持续多久,但肯定会在一段时间后低于)
我编写的保存自定义属性和获取自定义属性的代码如下:
function loadCustomProperties() {
Office.context.mailbox.item.loadCustomPropertiesAsync(function(result) {
console.log("Mail Custom Properties:", result);
});
}
function saveCustomProperties(recordId) {
Office.context.mailbox.item.loadCustomPropertiesAsync(function (result) {
console.log("Mail Custom Properties:", result);
result.value.set("RegistryEntryId", "113431");
result.value.saveAsync(function (saveResult) {
console.log("Save Custom Property Result: ", saveResult);
});
});
}