In outlook web add-in I have set some custom properties to the mail item, which persists only till same day, next day when I launch add-in again for same mail item all custom properties gone:
I am attaching my console log Images
Same Day when I saved custom properties to mail item
After some time or next day (I don't know actually how long it persists but for sure after some time I am getting below)
Code I write to Save custom properties & get custom properties is below:
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);
});
});
}