---
schema_version: "1"
id: 61d8006bb25d5e8c2be2f7df845b8462557f3909a61c8cb6b557f1c515edcd1d
title: Configure Inbound Call Transfers When Using Dynamic Routing
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/telephony_configure_inbound_call_transfers_dynamic_routing.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.telephony_configure_inbound_call_transfers_dynamic_routing.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f95a6b47184a46ce0395736a73ae56b7a96a80dad73d3eebcc8f1fefd8d872e8
description: For each incoming call, configure your partner contact center to get a dynamic routing phone number and then use it to transfer the call to the agent.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Configure Inbound Call Transfers When Using Dynamic Routing

For each incoming call, configure your partner contact center to get a dynamic routing phone number and then use it to transfer the call to the agent.

## Sample Inbound Flow in Amazon Connect

To illustrate how to configure inbound call transfers using Dynamic Routing, this section covers the steps required for Amazon Connect.

1. To create a voice call record, in the Amazon Connect inbound flow, add an AWS Lambda function block that calls the `createVoiceCall` function.
2. To get the country where the contact center is located, add a Get Customer Input block.
3. To get a dynamic routing number for the incoming call, add an AWS Lambda function block that calls a Lambda function. That function calls the [reserveRoutableNumber Salesforce Telephony API](https://developer.salesforce.com/docs/atlas.en-us.voice_developer_guide.meta/voice_developer_guide/voice_rest_reserve_routable_number.htm). Be sure to provide the required input parameters for the API. The API returns the dynamic routing phone number.
    
    ![Amazon Connect Lambda function input parameters for reserveRoutableNumber](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/amazon_flow_invoke_awsLambdaFunction_dynamic_routing.png)
4. To store the dynamic routing phone number, add a Set Contact Attributes block and assign the number to a variable. For example, store the phone number in the dynamicRoutingNumber variable.
    
    ![Amazon Connect Set Contact Attributes block storing the dynamic routing number](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/amazon_flow_set_contact_attributes_dynamic_routing.png)
5. To transfer the incoming call to the dynamic routing number, add a Transfer to Phone Number block.
    
    Manually set the Caller ID Number parameter to the phone number set in the fromNumber input parameter of the [reserveRoutableNumber Salesforce Telephony API](https://developer.salesforce.com/docs/atlas.en-us.voice_developer_guide.meta/voice_developer_guide/voice_rest_reserve_routable_number.htm).
    
    ![Amazon Connect Transfer to Phone Number block set to the dynamic routing number](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/amazon_flow_transfer_to_dynamic_routing_number.png)

Here's a visual representation of these steps in the Amazon Connect flow.

![Amazon Connect inbound call flow for Dynamic Routing showing all five steps](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/amazon_flow_dynamic_routing_full.png)