OfficeJS does CustomProperties.saveAsync save the entire item?

gummybuns 1 Reputation point
2022-09-07T15:55:11.887+00:00

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.

  1. Option 1: Call MessageCompose.saveAsync() then set the custom property and save with CustomProperties.saveAsync()
  2. Option 2: Set the custom property, call CustomProperties.saveAsync(), and then call MessageCompose.saveAsync()
  3. Option 3: Set the custom property, call CustomProperties.saveAsync(), (dont call MessageCompose.saveAsync()` since the draft automatically is saved and this is redundant).
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,641 questions
{count} votes