ExternalDataConnector describes where data was sourced and connects that source to its connection configuration, data platform, and related schema objects. A connector can carry source-schema definitions as well as connection information; it is not just a connection-type identifier.
The connection configuration, platform, and transport definition serve different purposes. dataConnectorConfiguration identifies the configuration used to retrieve or receive data, while dataPlatform identifies the platform that provides or uses it. Related transport definitions describe how information moves from a source to a target.
Key Elements
The table distinguishes top-level connector settings from elements nested under externalDataTranObjects.
| Element | What the Element Controls |
|---|---|
masterLabel |
Required. The connector's user interface label. Nested schema objects also require their own masterLabel. |
dataConnectorType |
The connection type. Documented values are ACCOUNTENGAGEMENT, AmazonS3, CuratedEntity, DataCloud, ExternalPlatform, GoogleCloudStorage, IngestApi, SalesforceCommerceCloud, SalesforceDotCom, SalesforceInteractionStudio, SalesforceMarketingCloud, SFTP, StreamingApp, and UPLOAD. The exposed enumeration differs; see Documentation Inconsistencies. |
dataConnectorConfiguration |
A reference to the connection configuration used to retrieve or receive data. It is separate from the platform reference. |
dataPlatform |
A reference to the platform that provides or uses the data, such as Amazon_S3. |
dataConnectionStatus |
Connectivity to the data source. Documented values are Connected, Disconnected, and Failed. The exposed enumeration also includes NeedsReAuthentication. |
externalDataTranObjects |
Contains related ExternalDataTranObject schema definitions. Their settings describe source-schema objects, not the connector's connection state. |
availabilityStatus |
Required within each schema object. Describes that object's availability: Available or In_Use. |
creationType |
Required within each schema object and nested schema field. Records origin or kind, including values such as Custom, Standard, and System. The schema-object value Activation_Audience is reserved for internal use. |
objectCategory |
Required within each schema object. References its category; transport categories are Profile, Engagement, or Other. |
mktDataTranObject |
Optional within a schema object. Associates it with a MktDataTranObject transport definition. Its representation differs between the exposed schema and Salesforce documentation. |
externalDataTranFields |
Optional collection of fields belonging to a schema object. Each field requires creationType and datatype. Fields can also carry formatting, length, numeric precision, and transport-field information. |
isDataRequired |
Within a schema field, indicates whether data is required for that field. |
primaryIndexOrder |
Within a schema field, identifies primary-key membership and attribute order. Numbering starts at 1; an omitted value means the field is not part of the primary key. |
sequence |
Within a schema field, describes its sequence in the source schema. It does not specify primary-key order. |
extDataTranObjectTemplate, extDataTranFieldTemplate
|
Read-only, internal template associations on a schema object and schema field, respectively. Salesforce populates them when a data kit containing a data stream is deployed. |
Behavior and Constraints
Access to ExternalDataConnector requires the Salesforce CustomizeApplication permission. The related ExternalDataTranObject schema type is available only when Data 360 is provisioned. That provisioning requirement belongs to the related schema type and is distinct from the connector's access permission.
Do not interpret dataConnectionStatus, availabilityStatus, and creationType as interchangeable status fields:
-
dataConnectionStatusdescribes the connector's connectivity to its source. -
availabilityStatusdescribes a nested schema object's availability. -
creationTyperecords a schema object's or field's origin or kind.
Nested field settings affect how the source schema is interpreted. isDataRequired controls whether a field must contain data. primaryIndexOrder defines membership and order in a primary key, including a compound key made from multiple fields. sequence independently describes source-schema sequence. Setting a sequence number does not make a field part of the primary key.
A nested field's externalName identifies its name in the external system and is distinct from its developer name. Field masterLabel is optional, even though the connector and schema-object labels are required.
Deployment and Retrieval
ExternalDataConnector components use the .externalDataConnector file suffix and belong in the externalDataConnectors directory. Keep the nested schema settings scoped to their containing objects and fields; they are not top-level connector settings.
The extDataTranObjectTemplate and extDataTranFieldTemplate elements are system-managed. Salesforce fills them when a data kit containing a data stream is deployed. Treat these values as read-only template associations, not as ordinary connection configuration to author or change.
The exposed schema represents mktDataTranObject and mktDataTranField as string references. Do not assume that their transport definitions are embedded inline. In particular, connector, dataSource, and dataSourceObject belong to the referenced MktDataTranObject; they are not settings on ExternalDataConnector.
Preserve connection-type identifiers exactly. AmazonS3 and AwsS3 are distinct exposed identifiers, not interchangeable spellings to normalize during metadata processing.
Relationships
The connector contains source-schema context, which can link to a transport definition. A transport definition describes delivery from a source to a target landing entity, such as the schema of a file, API, or event. In the other direction, a data stream definition can identify this connector through its dataConnector element.
References
-
ExternalDataTranObject:externalDataTranObjectscontains the related schema definitions. -
MktDataTranObject:mktDataTranObject, within an entry inexternalDataTranObjects, associates the source schema with its transport definition.
Within a schema field, mktDataTranField associates the field with a transport field. The template elements separately associate schema objects and fields with system-managed data kit template objects.
Referenced By
-
DataStreamDefinition:dataConnector.
Documentation Inconsistencies
-
Connection-status values differ. Salesforce documents
Connected,Disconnected, andFailed. The exposed element enumeration additionally includesNeedsReAuthentication. -
Connector-type values differ. Salesforce documents
ACCOUNTENGAGEMENT, which is absent from the exposed enumeration. The exposed enumeration additionally includesAwsS3,AzureBlob, andStreamingFlow. Both lists includeAmazonS3; do not collapse it intoAwsS3. -
Transport associations have different representations. Salesforce describes nested
mktDataTranObjectusing theMktDataTranObjectcomplex type, while the exposed schema represents it as a string reference. Likewise, Salesforce describesexternalDataTranFields.mktDataTranFieldusing a transport-field type, while the exposed schema represents it as a string. These descriptions do not justify assuming that transport definitions are embedded inline.
Common Questions
Where is ExternalDataConnector stored in a metadata project?
Its files belong in externalDataConnectors and use the .externalDataConnector suffix.
What permission is required to access ExternalDataConnector?
Access requires CustomizeApplication. Separately, the related ExternalDataTranObject schema type requires Data 360 to be provisioned.
Is dataPlatform the same as dataConnectorConfiguration?
No. dataPlatform references the platform that provides or uses the data. dataConnectorConfiguration references the configuration used to retrieve or receive it.
Does availabilityStatus show whether the connector is connected?
No. availabilityStatus belongs to a nested schema object and describes that object's availability. The connector's connectivity is described by dataConnectionStatus.
How do I define a compound primary key in the nested source schema?
Set primaryIndexOrder on each participating field, starting at 1, to specify attribute order. Omit it for fields outside the key. Do not use sequence for this purpose; that element describes source-schema sequence.