OfficeJS does CustomProperties.saveAsync save the entire item?

gummybuns
1
Reputation point
According to the docs
CustomProperties.saveAsync saves item-specific custom properties to the server. Does it also internally perform the same logic as MessageCompose.saveAsync?
We have business logic that requires the draft to be saved and a custom property to be set with a single button action. I am trying to understand if both calls are necessary or if the order matters.
- Option 1: Call
MessageCompose.saveAsync()
then set the custom property and save withCustomProperties.saveAsync()
- Option 2: Set the custom property, call
CustomProperties.saveAsync()
, and then callMessageCompose.saveAsync()
- Option 3: Set the custom property, call
CustomProperties.saveAsync()
, (dont call MessageCompose.saveAsync()` since the draft automatically is saved and this is redundant).
{count} votes