Failed to save customer property with offiejs api at Mac outlook

86 Views Asked by At
var item = Office.context.mailbox.item;
item.loadCustomPropertiesAsync(customPropsCallback);
function customPropsCallback(asyncResult) {
    var customProps = asyncResult.value;
    var myProp = customProps.get("myProp");
    customProps.set("otherProp", "value");
    customProps.saveAsync(saveCallback);
}

we cannot get the property after we used the above api to save property in office365 addin on mac outlook which works previously. Note this issue only happened on Mac outlook.

1

There are 1 best solutions below

0
On

Outlook for Mac does not support saving a calendar event.

Documentation: Outlook for Mac does not support saving a meeting. The saveAsync method will fail when called from a meeting in compose mode.

So the custom properties, which you have set on the client will not be accessible on the exchange server until the calendar event is sent.

Custom properties should still be available on the same Outlook client, if you cannot get the custom property on the same Outlook client, then it is a bug in Outlook for Mac.