FieldSrcTrgtRelationship defines a field-level relationship from a Data Cloud data model object (DMO) to another DMO or to a standard or custom Salesforce object (SObject). It describes the relationship structure, not the data records participating in that relationship.
Access requires the Customize Application user permission. The component inherits fullName as its metadata identity; masterLabel is its required UI name. The owner element identifies the endpoint domains, not a user or record owner.
Key Elements
| Element | What the Element Controls |
|---|---|
masterLabel |
Required UI name for the field relationship. It is separate from the component's fullName metadata identity. |
definitionCreationType |
Required creation or category classification. Values include Custom, Standard, System, Calculated_Insight, and Segment_Membership. This classification does not determine whether the target is a DMO or an SObject. |
owner |
DataCloud means both endpoints are DMOs. SObject means the source is a DMO and the target is a standard or custom SObject. Required for an SObject target; inferable for a DMO target. The exposed enumeration also includes DataCloudInterface, whose endpoint and inference behavior is not documented. |
sourceFieldName |
Required source-side field name. Recognized as a reference to CustomField. |
targetEntity |
Target DMO or SObject name. Required when the target is an SObject; the system can infer it when the target is a DMO. Recognized as a reference to CustomObject. |
targetFieldName |
Required target-side field name. Recognized as a reference to CustomField. |
lookupFieldName |
Separate reference to the DMO lookup field. Recognized as a reference to CustomField. |
relationshipCardinality |
Required relationship cardinality, meaning how many records on one side can relate to records on the other. Allowed serialized values are ManyToOne and OneToOne; OneToMany is not allowed. |
Behavior and Constraints
Interpret the endpoints using owner, targetEntity, sourceFieldName, and targetFieldName together:
-
DMO to DMO:
ownerisDataCloud. The system can infer bothownerandtargetEntitywhen the target is a DMO. -
DMO to SObject:
ownerisSObject. Supply bothownerandtargetEntity, even though the general field definitions mark them optional. -
Both cases:
sourceFieldNameandtargetFieldNameare required.lookupFieldNameseparately identifies the DMO lookup field.
Read cardinality in the direction of the designated source and target fields. A logical relationship such as Individual.Id to ContactPointEmail.PartyId can be described as one-to-many, but that business description does not make OneToMany a valid value for relationshipCardinality.
definitionCreationType classifies the relationship's origin or category, independently of owner. The documented values are ADG, Activation_Audience, Ad_Audience_Insights, Auxiliary, Bridge, Calculated_Insight, Chunk, Clean_Room, Curated, Custom, Deletion_Records, Derived, Directory_Table, External, Ml_Prediction, Problem_Records, Segment_Membership, Semantic, Standard, System, Transform, and Vector_Embedding.
Deployment and Retrieval
Components use the .fieldSrcTrgtRelationship suffix and reside in the fieldSrcTrgtRelationships folder. Use the inherited fullName as the component identity, rather than treating masterLabel as its deployment identity.
For an SObject target, include owner and targetEntity in the relationship definition. Their general optional status does not apply to that endpoint combination. Likewise, serialize relationshipCardinality as ManyToOne or OneToOne, not as a one-to-many business description.
The field and object references identify definitions associated with the relationship. They do not, by themselves, establish a mandatory deployment sequence.
Do not assume that deploying a Data Kit definition also deploys its relationship components. In the January 2025 migration report described below, deploying DataPackageKitDefinition alone left out the kit contents, and FieldSrcTrgtRelationship had to be included explicitly. That result applies to the reported configuration, not to a universal Data Kit component list.
Relationships
The relationship connects field definitions at its source, target, and lookup field, and identifies the target object definition. These references support dependency and impact analysis; they do not prove that a particular component is used in an org.
References
-
CustomField:sourceFieldName,targetFieldName,lookupFieldName. -
CustomObject:targetEntity.
Documentation Inconsistencies
The exposed owner enumeration includes DataCloudInterface, but the platform field definition explains only DataCloud and SObject. The endpoint domains and inference rules for DataCloudInterface are not documented. Similarly, the exposed definitionCreationType enumeration includes CG_Audience, which the platform field definition does not describe.
The official relationship example uses a one-to-many description, while the field definition allows only ManyToOne and OneToOne for serialization. Interpret the example as a description of the logical relationship, not as an additional allowed value.
Reported Issues
-
A Data Kit could migrate without its contents when only its definition was selected. In a January 2025 report, an administrator found that Salesforce CLI or Metadata API migration did not automatically select the kit components as the unmanaged-package approach did. Their configuration used an Ingestion API connector, multiple Ingestion API data streams, and mappings to standard and custom DMOs. The reported successful component set included
DataPackageKitDefinition,DataPackageKitObject,DataSourceBundleDefinition,DataSourceObject,DataSrcDataModelFieldMap,DataStreamTemplate,ExtDataTranObjectTemplate,FieldSrcTrgtRelationship,DataSource, andCustomObject. In that scenario,CustomObjectcovered custom DMOs and custom formula fields on standard DMOs. This was a configuration-specific migration result, not a required list for every Data Kit. Data Kit migration report.
Common Questions
When are owner and targetEntity required?
Both are needed when the source is a DMO and the target is a standard or custom SObject. Set owner to SObject. When the target is a DMO, the system can infer both values.
Can relationshipCardinality be OneToMany?
No. The allowed serialized values are ManyToOne and OneToOne. Interpret cardinality using the designated source and target fields, even when the business relationship is described as one-to-many.
Where are FieldSrcTrgtRelationship files stored?
They are stored in the fieldSrcTrgtRelationships folder with the .fieldSrcTrgtRelationship suffix. The component's metadata identity is its inherited fullName.
Why did deploying my Data Kit leave out its relationships?
Deploying DataPackageKitDefinition alone did not include kit contents in the reported January 2025 migration. That administrator explicitly included FieldSrcTrgtRelationship and other components for their Ingestion API and DMO mapping configuration.
What permission is required to access FieldSrcTrgtRelationship?
The Customize Application user permission is required to access this metadata type.