Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Execute an Omni-Channel Flow
URI
https://{MyDomain}.my.salesforce-scrt.com/telephony/v1/voiceCalls/{CALL ID}/omniFlow
Where {MyDomain} is a value configured as part of Salesforce Voice setup and {CALL ID} is the Salesforce voiceCallId or the telephony vendor’s contact ID.
HTTP Method
PATCH
Headers
- Authorization: Bearer <token>
-
String. Standard header. The authorization token, where <token> is the JSON Web Token (JWT). Required.
- Content-Type: <format>
- String. Standard header. The format of the request body. Valid formats include JSON and XML. For example, application/json or application/xml. Required.
- Telephony-Provider-Name: <telephony provider name>
- String. Custom header. The name of the telephony provider that calls this API. For example, Amazon Connect.
Parameters
| Property Name | Type | Description | Required |
|---|---|---|---|
| dialedNumber | string | Set a new dialed number to account for a dialed number that doesn’t have a phone channel set up. Dialed number is the phone number called. | Yes |
| flowDevName | string | Set the Omni-Channel flow using its developer name. | No |
| fallbackQueue | string | Set the fallback queue using its Salesforce queue developer name or ID. | No |
| flowInputParameters | string | Set additional inputs to the Omni-Channel flow. | No |
Example
1PATCH /telephony/v1/voiceCalls/0LQRM0000006CSz/omniFlow
2{
3 "dialedNumber": "+18445791189"
4 "flowDevName": "Route_VoiceCall",
5 "fallbackQueue": "00G111222333444",
6 "flowInputParameters": {
7 "Input1": "one",
8 "Input2": "two"
9 }
10}1{
2 "agent": "[AGENT_INFO]",
3 "queue": "[QUEUE_INFO]"}1{
2 "errors": ["error1", "error2"]
3}