Newer Version Available
Send Conversation Messages Actions
This object is available in API version 59.0 and later.
On invocation, this action inserts and enqueues a message for handling the request and sending out the messages async. The request record can be used to track the progress.
Typical use cases include:
- Confirmation of a purchase or booking
- Shipping or delivery updates
- Password reset requests
- Account verification messages
- Payment reminders
- Abandoned cart reminders
Supported REST HTTP Methods
- URI
- /services/data/v59.0/actions/standard/sendConversationMessages
- Formats
- JSON, XML
- HTTP Methods
- GET, HEAD, POST
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| messageDefinitionName |
|
| messagingDefinitionInputParameters |
|
| requestType |
|
| isEnforceMessagingChannelConsent |
|
| allowedSessionStatus |
|
| messagingEndUserIds |
|
Outputs
| Input | Details |
|---|---|
| requestId |
|
| messageIdentifiers |
|
Usage
- Sample Input
-
The following sample input attempts to create a ConvMessageSendRequest record using a Messaging Component (messageDefinitionName), the request for the type of component being sent (requestType), the consent preferences (isEnforceMessagingChannelConsent), when the message can be sent (allowedSessionStatus), and the message recipients (messagingEndUserIds). Additionally, the request contains a list of custom parameters (messagingDefinitionInputParameters). These parameters are mapped to parameters configured in the messaging component, which may be optional. Applicable data types for parameters are textValue, recordIdValue, dateValue, dateTimeValue, numberValue, and booleanValue.
1{ 2 "inputs": [{ 3 "messageDefinitionName":"Notification", 4 "requestType":"SendNotificationMessages", 5 "isEnforceMessagingChannelConsent":true, 6 "allowedSessionStatus":"Any", 7 "messagingEndUserIds":"0PARM000000Lc3I,0PARM000000MZ3p", 8 "messagingDefinitionInputParameters":[{"name":"custom_parameter_name","textValue":"custom parameter value"}] 9 }] 10} - Sample Output
-
The following sample output illustrates a response after a successful request.
1[ 2 { 3 "actionName":"sendConversationMessages", 4 "errors":null, 5 "isSuccess":true, 6 "outputValues":{ 7 "messageIdentifiers":"c581098c-5db6-4ed8-915f-c9aaa016c671,d8e1990e-5d67-414c-9713-180107d7d1bb", 8"requestId":"1srM000000000p" 9 } 10 } 11]
For more information about this action, see Flow Core Actions: Send Conversation Messages and Send Automated Messages in Enhanced Messaging Channels in Salesforce Help.