Add Support for Custom Objects
Use parameters, parameter mappings, and flows to route custom data to Salesforce objects.
To pass custom parameters in the API:
-
Set ConversationChannelDefinition.CapabilitiesSupportsCustomChannelParameters to true.
-
Ask your admin to create custom parameters and parameter mappings to route data to objects. When they create the new parameter and mapping, ask them to note the Channel Variable Name.
-
In the Interactions API or routeWork API, use the routingAttribute parameter to pass the key-value pair for the flow variable in the format
"routingAttribute" : "key" : "value"
, wherekey
is the channel variable name in the parameter mapping, andvalue
is the value. In the sample payload, routingAttributes the key is set to input_OrderNumber which is mapped to the input OrderNumber parameter in Salesforce.Here is a sample payload for
POST /api/v1/interactions
.
See Also
- Salesforce Help: Route Data to Objects in Bring Your Own Channel
- Salesforce Help: Route Data to Objects in Bring Your Own Channel for CCaaS
- Salesforce Help: Understand the Details of the Routing Lifecycle
- GitHub: Interaction Service APIs