Office.MailboxEnums.ItemNotificationMessageType enum

Specifies the notification message type for an appointment or message.

Remarks

[ API set: Mailbox 1.3 ]

Applicable Outlook mode: Compose or Read

Examples

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/35-notifications/add-getall-remove.yaml

// Adds an error notification to the mail item.
const id = $("#notificationId").val().toString();
const details =
  {
    type: Office.MailboxEnums.ItemNotificationMessageType.ErrorMessage,
    message: "Error notification message with id = " + id
  };
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);

Fields

ProgressIndicator = "progressIndicator"

The notification message is a progress indicator.

InformationalMessage = "informationalMessage"

The notification message is an informational message.

ErrorMessage = "errorMessage"

The notification message is an error message.

Important: Only the InformationalMessage type is supported in Outlook on Android and on iOS.

InsightMessage = "insightMessage"

The notification message is an informational message with actions.