TelephonyProvider defines a telephony provider configuration that an org uses with Bring Your Own Carrier (BYOC). It stores the provider's name, country, trunk type, label, and identifiers.
The configuration's metadata component name is different from its provider name, label, and IDs. Use fullName to identify the component in metadata operations; externalIdentifier identifies the telephony provider, while id identifies the TelephonyProvider record.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Required. The unique metadata component name, inherited from the base Metadata type. This is not the provider ID or record ID. |
masterLabel |
Required. The label for the telephony provider configuration. |
providerName |
Required. The name of the telephony provider, distinct from the component's fullName. |
country |
Required. A ByocCountryCode enumeration value, not a free-form country name. Supported values are AT, AU, BE, BG, CA, CH, CY, CZ, DE, DK, EE, ES, FI, FR, GB, GR, HR, HU, IE, IT, LT, LU, LV, NL, NO, NZ, PL, PT, RO, SE, SI, SK, TR, and US. |
trunkType |
Required. Accepts Trusted or Secondary. These values specify the trunk type; their names alone do not define a complete routing or failover policy. |
externalIdentifier |
The ID of the telephony provider. It is not the metadata component name. |
id |
The ID of the TelephonyProvider record. It is distinct from both externalIdentifier and fullName. |
Behavior and Constraints
Access to TelephonyProvider requires assignment of the Agentforce Contact Center Admin (Salesforce Voice) permission set. This is an access prerequisite for the user, not a setting stored inside the component.
A configuration requires fullName, masterLabel, providerName, country, and trunkType. For country, use a supported code such as US or GB, rather than a country name. For trunkType, use one of the two allowed values, Trusted or Secondary.
Keep the identity fields separate when preparing configuration files. A provider ID or record ID does not replace fullName, and neither providerName nor masterLabel is the component's metadata identity.
Deployment and Retrieval
TelephonyProvider components use the .telephonyProvider suffix and are stored in the telephonyProviders folder.
In a package.xml manifest, use TelephonyProvider as the metadata type name. The type supports the wildcard member *, so a retrieval manifest can request all components of this type. When targeting an individual component, use its fullName, not its id or externalIdentifier.
For the file-based manifest workflow, see Deploying and Retrieving Metadata with the Zip File.
Common Questions
Which permission set is required to access TelephonyProvider metadata?
The user must have the Agentforce Contact Center Admin (Salesforce Voice) permission set assigned. There is no component element that substitutes for this assignment.
How do I retrieve all TelephonyProvider components?
Use TelephonyProvider as the type name and * as the member value in package.xml. Component files use the .telephonyProvider suffix in the telephonyProviders folder.
Should I use id or externalIdentifier as the metadata component name?
Neither. Use fullName for metadata operations. id identifies the configuration record, and externalIdentifier identifies the telephony provider.
What values can I use for country and trunkType?
country must be a supported ByocCountryCode value, such as US or GB. trunkType accepts only Trusted or Secondary; those names alone do not establish a routing or failover policy.