Newer Version Available
ExternalCredential
Parent Type
File Suffix and Directory Location
ExternalCredential components have the suffix .externalCredential and are stored in the externalCredentials folder.
Version
ExternalCredential components are available in API version 56.0 and later.
Special Access Rules
There are no additional access requirements that are specific to this type.
Fields
| Field Name | Description |
|---|---|
| authenticationProtocol |
|
| description |
|
| externalCredentialParameters |
|
| label |
|
ExternalCredentialParameter
Represents the parameters that configure an external credential. External credential parameters are used to configure external credential callouts through a combination of the type, name, and value and lookup fields. Available in API version 56.0 and later.
These parameters are used internally to provide a flexible architecture and are exposed here for packaging reasons.
| Field Name | Description |
|---|---|
| authProvider |
|
| certificate |
|
| description |
|
| externalAuthIdentityProvider |
|
| parameterGroup |
|
| parameterName |
|
| parameterType |
|
| parameterValue |
|
| principal |
|
| sequenceNumber |
|
Declarative Metadata Sample Definition
The following is an example of an ExternalCredential component.
1<ExternalCredential xmlns="http://soap.sforce.com/2006/04/metadata">
2 <label>SampleExternalCredential</label>
3 <authenticationProtocol>AwsSv4</authenticationProtocol>
4 <externalCredentialParameters>
5 <parameterName>Principal</parameterName>
6 <parameterType>NamedPrincipal</parameterType>
7 <sequenceNumber>1</sequenceNumber>
8 </externalCredentialParameters>
9 <externalCredentialParameters>
10 <parameterName>AwsService</parameterName>
11 <parameterValue>iam</parameterValue>
12 <parameterType>AuthParameter</parameterType>
13 </externalCredentialParameters>
14 <externalCredentialParameters>
15 <parameterName>AwsRegion</parameterName>
16 <parameterValue>us-east-1</parameterValue>
17 <parameterType>AuthParameter</parameterType>
18 </externalCredentialParameters>
19</ExternalCredential>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>*</members>
5 <name>ExternalCredential</name>
6 </types>
7 <version>56.0</version>
8</Package>Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.