Salesforce

Post a notification without an event

« Go Back
Information
Post a notification without an event
000004236
Public
Product Selection
aiWare - aiWare
Article Details

Posting a notification without 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. It's also useful if you don't or can't have an event, like if you're integrating an external API.

Steps

  • Call notificationPost().
mutation {
  notificationPost(
    input: {
# ID of each mailbox you want to send a notification to
      mailboxIds: String[]
      title: String
      body: String
      contentType: String
      flags: [unseen, unread]
    }
  ) {
    id
    body
    title
    contentType
    flags
    createdDateTime
  }
}

The notification appears in the app bar.

Additional Technical Documentation Information
Properties
1/28/2025 7:51 PM
1/28/2025 7:53 PM
1/28/2025 7:53 PM
Documentation
Documentation
000004236
Translation Information
English

Powered by