Office.MailboxEnums.ItemNotificationMessageType enum
Specifies the notification message type for an appointment or message.
Remarks
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 = (document.getElementById("notificationId") as HTMLInputElement).value;
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 |
InsightMessage = "insightMessage" | The notification message is an informational message with actions. |