Posting a notification with an event directly to a mailbox bypasses the mailbox's eventName and eventType filters, so it's a useful way to post user or admin notifications while still triggering any actions linked to the event.
Steps
- Call
notificationPost().
mutation {
notificationPost(
input: {
mailboxIds: String[]
body: String
contentType: String
flags: [unseen, unread]
# Event name this notification belongs to
eventName: String
# Event type this notification belongs to
eventType: String
}
) {
id
body
contentType
flags
createdDateTime
}
}
The notification appears in the app bar.