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
Currently, 200 invocations of the Send Conversation Messages action can be in progress at the same time. If this limit is reached, additional requests are queued and sent when the number of in-progress requests falls below 200. For queued requests, the messaging session owner for automated messages is the Platform Integration User. Otherwise, it’s the user triggering the action.
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 can be optional. Applicable data types for parameters are textValue, recordIdValue, dateValue, dateTimeValue, numberValue, and booleanValue.
- Sample Output
-
The following sample output illustrates a response after a successful request.
For more information about this action, see Flow Core Actions: Send Conversation Messages and Send Automated Messages in Enhanced Messaging Channels in Salesforce Help.