Outlook classic: custom properties are not persisted after saveAsync #4930
Labels
Area: Outlook
Issue related to Outlook add-ins
Needs: attention 👋
Waiting on Microsoft to provide feedback
I need to attach a custom property to an incoming messages when the message is viewed. For that, I use
While the message is still being viewed, I need to make a call to a backend web API, where the mail and its custom properties are downloaded from Microsoft Graph.
The Problem
I noticed that Outlook (classic) does not sync the custom properties to Microsoft Graph after you call CustomProperties.saveAsync.
This behavior is actually documented in the remarks section:
However, I have the same problem for received messages, and there is no
Office.MessageRead.saveAsync
method to force a sync. My custom property is only synced to Microsoft Graph after the user closes the message.This is a problem because I need the value of the custom property in my server backend, while the user still has the message open.
Your Environment
Expected behavior
After calling
CustomProperties.saveAsync
, I expect to find the values in Microsoft Graph shortly after.Current behavior
The values only show up in Microsoft Graph after the user closes the message.
Steps to reproduce
Office.MessageRead.loadCustomProperties
CustomProperties.set('time', Date.now().toString());
CustomProperties.saveAsync
Link to live example(s)
Sorry, it's an internal app.
Provide additional details
Ask away.
Context
Ask away.
Useful logs
There is not really any relevant log, as it is not an error per se.
The text was updated successfully, but these errors were encountered: