Office.MailboxEnums.AppointmentSensitivityType enum

Specifies the sensitivity level of an appointment.

Remarks

[ API set: Mailbox 1.14 ]

Applicable Outlook mode: Compose or Read

Examples

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/90-other-item-apis/get-set-sensitivity-level.yaml

Office.context.mailbox.item.sensitivity.setAsync(
  Office.MailboxEnums.AppointmentSensitivityType.Private,
  function callback(asyncResult) {
    if (asyncResult.status === Office.AsyncResultStatus.Failed) {
      console.log("Failed to set appointment sensitivity: " + JSON.stringify(asyncResult.error));
    } else {
      console.log("Successfully set appointment sensitivity.");
    }
  }
);

Fields

Normal = "normal"

The item needs no special treatment.

Personal = "personal"

Treat the item as personal.

Important: The Personal sensitivity level is only supported in Outlook on Windows.

Private = "private"

Treat the item as private.

Confidential = "confidential"

Treat the item as confidential.

Important: The Confidential sensitivity level is only supported in Outlook on Windows.