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. Send Notification actions are available only for Slack-enabled custom notification types and certain Slack-enabled standard notification types.

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

To create a custom Slack notification type 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.

Supported REST HTTP Methods 

URIs:

  • 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 

InputTypeDescription
recipientIdsIDRequired. The IDs of the notification recipients or recipient types. Valid recipient or recipient type values are UserId or CollaborationRoomId values.
recordIdIDRequired. The ID of the record that the notifications are about. The record ID must be associated with the specific EntityType of the notification type. For example, enter the record ID for an opportunity when configuring a notification type associated with the Opportunity object. For custom notification types, you can find the related object by viewing the notification type’s settings from Custom Notifications in Setup. For supported standard notification types, 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 supported by a Send Notification action. The object determines the value that you enter for recordId.

Standard Notification TypeRelated Salesforce Object
amount_updatedOpportunity
close_date_reminderOpportunity
close_date_updatedOpportunity
deal_wonOpportunity
deals_to_watchOpportunity
hc_allergy_intolerance_alertAllergy Intolerance
hc_care_determinant_alertCare Determinant
hc_care_plan_alertCase
hc_care_plan_task_alertTask
hc_health_condition_alertHealth Condition
high_priority_caseCase
new_child_opportunityOpportunity
next_step_reminderOpportunity
stage_reminderOpportunity
stage_updatedOpportunity

See Also