---
title: Custom phone numbers and custom objects
slug: voice-german/custom-phone-numbers-and-custom-objects
docTags: 
createdAt: 2024-03-13T15:35:31.717Z
---

CTI Data Connector for Salesforce® allows you to add **custom phone number fields** in standard and custom objects and als&#x6F;**&#x20;include custom objects in the phone number search**.

To dial from objects like opportunities or own custom objects there are 2 options:

•add a formula field which makes a reference to a phone number stored in leads, accounts or contacts (only outbound calls)

•add a custom phone field in standard or custom objects (outbound calls and phone number search for inbound)

## Using a custom phone field in a standard object

You can add a custom phone number field to any **standard object&#x20;**&#x6C;ike contact or case. The phone number field can be used for outgoing calls and it will also be **included in the search for incoming calls**.

Create a field of the type **Phone**

![](https://api.archbee.com/api/optimize/10Nod6Ww95R3dPr0k0TCJ/mf9wsPoDYrAb4u9fCUu0Y_image.png "Custom phone field")

**



•Write down the **API name**.

•Add the API name in the call center adapter, option. See [Expert Settings](docId\:hwJwfEjMK5iFUUMk7GWwP)

•In front of the API name the object name has to be added, e.g.**&#x20;contact.Phone\_2\_\_c**

•In case there are multiple custom phone number fields use a comma to separate it.





![](https://api.archbee.com/api/optimize/10Nod6Ww95R3dPr0k0TCJ/X4EXfxbsWHY76rh-6h35v_image.png "Configure the custom phone number in the Call Center Adapter")

**

## Using a custom phone field in a custom object

In case you have own custom objects, e.g. insurance or patient record, you can add custom phone number fields. The phone number field can be used for outgoing calls and it will also be **included in the search for incoming calls**.



Create a field of the type **Phone**





![](https://api.archbee.com/api/optimize/10Nod6Ww95R3dPr0k0TCJ/aD6CxWL8fnj4cMHRDkZld_image.png "Custom phone field in a custom object")

**

•Write down the **API name**.

•Add the API name in the call center adapter, option:*[phone fields of custom objects and custom phone fields of standard objects](https://helpserver.biz/onlinehelp/cdc/sf/5.0/help2000/expert_settings.html#customphoneno)*

•In front of the API name the object name has to be added, e.g.**&#x20;Insurance\_\_c.Business\_Phone\_\_c**

•In case there are multiple custom phone number fields use a comma to separate it.



![](https://api.archbee.com/api/optimize/10Nod6Ww95R3dPr0k0TCJ/vMgwm1VPylujRSXZ9e7GN_image.png "Configure the custom phone number in the Call Center Adapter")

**



Now **enable search** for the custom object



![](https://api.archbee.com/api/optimize/10Nod6Ww95R3dPr0k0TCJ/WA21jN9AoL8aG-gpiFBIb_image.png "Custom object - enable search")

**



The last step is to add the custom object in the [SoftPhone Layout](https://helpserver.biz/onlinehelp/cdc/sf/5.0/help2000/softphone_layout.html). **The first field must be a field with a name**, e.g. patient name. This field will be displayed in the CTI Data Connector SoftPhone and it is used for the call history.



![](https://api.archbee.com/api/optimize/10Nod6Ww95R3dPr0k0TCJ/sHZEqvB9Bc1vlQnXgmnXp_image.png "Add custom object to SoftPhone")

**

:::hint{type="info"}
In case you have a field with *first name* and *last name*, add a formula field **Full Name.&#x20;**&#x54;his field can then be used in the SoftPhone Layout
:::





![](https://api.archbee.com/api/optimize/10Nod6Ww95R3dPr0k0TCJ/EFeUTYrqW7LQujtDW6Hg2_image.png "Formula for full name field")

**





## Using a formula field to dial



Note - Salesforce has disabled that functionality for security reasons in most setups.



A text formula can be used to add a hyperlink phone number field. This field can be used only for **outgoing calls** and the phone number search for incoming calls would still only search in the main object, e.g. accounts.



Create a **formula field of the type text**.





![](https://api.archbee.com/api/optimize/10Nod6Ww95R3dPr0k0TCJ/zvWAmo3D9MCIPyHQ49PIc_image.png "create formula text field")

**



![](https://api.archbee.com/api/optimize/10Nod6Ww95R3dPr0k0TCJ/HMMO005d0pP79F7GqjtJB_image.png "add formula")

**





Add the following formula where *account.phone* is the phone number field you want to use to dial. In this example it is the phone number field from the account object. If you click on the button: *Insert Field* you can select all phone number fields which are available for this object.



This is an example how to add the account phone number in opportunities.



***HYPERLINK("javascript\:sendCTIMessage('/CLICK\_TO\_DIAL?DN=' + encodeURIComponent('"&(Account.Phone)&"') + '\&ID=' + encodeURIComponent('" & Id & "') + '\&ENTITY\_NAME=' + encodeURIComponent('Opportunity') + '\&OBJECT\_NAME='+encodeURIComponent('"\&Account.Name&"')+'\&DISPLAY\_NAME='+encodeURIComponent('Opportunity'))" , Account.Phone,"\_self")***



<u>**Explanation**</u>

Account.Phone = phone number which should be added to the object

Id = ID of the object where you want to add the phone number field. Can be retrieved with the button: Insert Field

Opportunity = name of the object where you add the phone number

Account.Name = name which is displayed in the CTI Data Connector SoftPhone when the call is active
