Send Multi-Channel Notification Action

Send notifications through multiple channels, including in-app notifications and Slack, to specified recipients with customizable content.

This action is available in API version 60.0 and later.

Special Access Rules 

The Send Multi-Channel Notification action is available in Enterprise and Unlimited Editions with Energy and Utilities Cloud. Sending notifications through Slack requires a configured Slack integration.

Supported REST HTTP Methods 

URI: /services/data/v60.0/actions/standard/sendMultiChannelNotification

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a variable.

Inputs 

InputTypeDescription
recipientIdsstring[]Required.
IDs of the users who receive the notification.
recordIdstringRequired.
ID of the record that provides context for the notification.
notificationTypestringRequired.
Identifier for the notification type.
headerLabelstringRequired.
Header text shown in the notification.
bodyLabelstringRequired.
Body text shown in the notification.
targetPageReferencestringOptional.
Page reference to navigate to when the notification is selected.
targetPageReferenceLabelstringOptional.
Label for the navigation link.
iconstringOptional.
Icon name shown with the notification.
imagePathstringOptional.
Path to an image shown with the notification.

Outputs 

OutputTypeDescription
statusstringResult of the notification send operation. Value is SUCCESS or FAIL.

Example 

POST

This sample request is for the Send Multi-Channel Notification action.

1{
2  "inputs": [
3    {
4      "recipientIds": ["005xx000001SwZbAAK", "005xx000001SwZcAAK"],
5      "recordId": "0INxx0000004CmqAAE",
6      "notificationType": "ProgramApplicationApproved",
7      "headerLabel": "Application Approved!",
8      "bodyLabel": "Your solar rebate application has been approved.",
9      "targetPageReference": "IndividualApplication__c",
10      "icon": "standard:approval"
11    }
12  ]
13}

This sample response is for the Send Multi-Channel Notification action.

1[
2  {
3    "actionName": "sendMultiChannelNotification",
4    "errors": null,
5    "invocationId": null,
6    "isSuccess": true,
7    "outputValues": {
8      "status": "SUCCESS"
9    },
10    "sortOrder": -1,
11    "version": 1
12  }
13]