Newer Version Available

This content describes an older version of this product. View Latest

Send Notification Actions

Call a notification type to send. Each Send Notification action corresponds to a supported notification type. This object is available in API version 54.0 and later. In API version 55.0, Send Notification actions are available only for custom Slack notifications and certain standard Slack-enabled notification types.

To send notifications for Slack, enable Salesforce for Slack Integrations.

To create a custom Slack notification supported by a Send Notification action, see Create and Send Custom Slack Notifications.

To trigger Send Notification actions using REST API calls, you need the Send Custom Notifications user permission.

Note

Supported REST HTTP Methods

URI
Get a list of available Send Notification actions.
/services/data/vXX.X/actions/custom/sendNotification
Get information about a specific Send Notification action:
/services/data/vXX.X/actions/custom/sendNotification/notification_type_name
Formats
JSON, XML
HTTP Methods
GET, HEAD, POST
Authentication
Authorization: Bearer token

Inputs

Input Details
recipientIds
Type
ID
Description
Required. The IDs of the recipients or recipient types of the notification. Valid recipient or recipient type values are UserId or CollaborationRoomId values.
recordId
Type
ID
Description

Required. The ID of the record that the notification is about. The record ID must be associated with the specific EntityType of the notification. For example, enter the record ID for an opportunity when configuring a notification associated with the Opportunity object.

For custom notifications, you can find the related object by viewing the notification's details from Custom Notifications in Setup. For supported standard notifications, refer to the Standard Notification Types and Related Objects table.

Standard Notification Types and Related Objects

Use this table to identify which object applies to each standard notification type that’s supported by a Send Notification action. The object determines the value that you enter for recordId.

Standard Notification Type Related Salesforce Object
amount_updated

Opportunity

close_date_reminder

Opportunity

close_date_updated

Opportunity

deal_won

Opportunity

deals_to_watch

Opportunity

hc_allergy_intolerance_alert

Allergy Intolerance

hc_care_determinant_alert

Care Determinant

hc_care_plan_alert

Case

hc_care_plan_task_alert

Task

hc_health_condition_alert

Health Condition

high_priority_case

Case

new_child_opportunity

Opportunity

next_step_reminder

Opportunity

stage_reminder

Opportunity

stage_updated

Opportunity