Send a custom notification - ION Manual

ION Notification System

ION has a notification system built into the application’s workflows, with both native notifications and notifications you can send through the ION API. For example, when you’re assigned to an approved issue disposition, you receive a toast notification while you’re using the application and a notification in the notifications tab. Toast notifications appear in the interface. ION checks for toast notifications every 30 seconds, so a toast can take up to 30 seconds to appear. To view all notifications in detail, go to the notification page by clicking the envelope icon and selecting Show all.

Send a custom notification

Use the dispatchNotification mutation to send custom notifications:

mutation notification($input:DispatchNotificationInput!) {
  dispatchNotification(input: $input) {
    response {
      messageId
    }
  }
}

Use these query variables:

{
  "input": {
    "userId": 3660,
    "notificationType": "WARNING",
    "description": "Purchase order versioned and PDF file generated. Please refresh.",
    "title": "PO Versioned & PDF Generated",
    "linkText": "This is the link",
    "path": "https://app-v2.buildwithion.com/"
  }
}

The query variables are:

Notification types

ION supports the following notification types: