![](https://www.infallibletechie.com/wp-content/uploads/2024/02/Omni-Channel-Flow-for-routing-Salesforce-Voice-Calls-1024x576.jpg)
1. Create an Omni-Channel Flow.
![](https://www.infallibletechie.com/wp-content/uploads/2023/05/Salesforce-Omni-Channel-Flow-Voice-Call.png)
2. Use InvokeTelephonyIntegrationApiFunction lambda from the Contact Flow.
![](https://www.infallibletechie.com/wp-content/uploads/2023/05/Salesforce-InvokeTelephonyIntegrationApiFunction.png)
![](https://www.infallibletechie.com/wp-content/uploads/2023/05/Salesforce-executeOmniFlow-Voice.png)
![](https://www.infallibletechie.com/wp-content/uploads/2023/05/Salesforce-Voice-Amazon-flowInput.png)
![](https://www.infallibletechie.com/wp-content/uploads/2023/05/Salesforce-Voice-Amazon-flowInput-custom-variable.png)
The lambda function after executing Omni-Channel Flow will return Agent ARN if the Omni-Channel Flow Routed to an Agent or Queue ARN if it is routing to a Queue.Use Set contact attributes to capture the ARN Values.
![](https://www.infallibletechie.com/wp-content/uploads/2024/02/Set-Attributes-to-capture-Agent-and-Queue-ARN.png)
Use the Agent or Queue ARN in the Set working queue before calling the Transfer to Queue block to route the Voice Call.
![](https://www.infallibletechie.com/wp-content/uploads/2024/02/Transfer-to-Queue-ARN-Salesforce-Flow.png)
3. Make sure the Queues used in the Salesforce Omni-Channel Flow are mapped under Queue Mapping in the Contact Center.
4. Make sure Contact Center Channels have an entry for the Phone Number and Omni-Channel Flow.
![](https://www.infallibletechie.com/wp-content/uploads/2023/05/Salesforce-Amazon-Contact-Center-1024x874.png)