Office.MailboxEnums.ItemNotificationMessageType enum
Gibt den Benachrichtigungstyp für eine Nachricht oder einen Termin an.
Hinweise
Anwendbarer Outlook-Modus: Compose oder Lesen
Beispiele
// 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, (result) => {
if (result.status === Office.AsyncResultStatus.Failed) {
console.log(`Failed to add error notification with id = ${id}. Try using a different ID.`);
return;
}
console.log(`Added error notification with id = ${id}.`);
});
Felder
| ProgressIndicator = "progressIndicator" | Die Benachrichtigung ist eine Statusanzeige. |
| InformationalMessage = "informationalMessage" | Die Benachrichtigungsmeldung ist eine Informationsmeldung. |
| ErrorMessage = "errorMessage" | Die Benachrichtigung ist eine Fehlermeldung. |
| InsightMessage = "insightMessage" | Die Benachrichtigung ist eine Informationsmeldung mit Aktionen. |