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 = $("#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 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins