---
schema_version: "1"
id: 08e86641feaa2a27e99d1f6f79128a122abccdb3c4855643c24bb6d2af7e1efb
title: FieldSrcTrgtRelationship
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_fieldsrctrgtrelationship.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_fieldsrctrgtrelationship.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 809985d12dce64c7a4154cd7ee3f3f559558f69197a193315a1311e5d076daf6
description: Stores the relationships between a data model object (DMO) and its fields. For example, the Individual.Id field has a one-to-many relationship (1:M) with the ContactPointEmail.PartyId field.
---
# FieldSrcTrgtRelationship

Stores the relationships between a data model object (DMO) and its fields. For example, the Individual.Id field has a one-to-many relationship (1:M) with the ContactPointEmail.PartyId field.

![Important](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

## Parent Type

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

## File Suffix and Directory Location

FieldSrcTrgtRelationship components have the suffix .fieldSrcTrgtRelationship and are stored in the fieldSrcTrgtRelationships folder.

## Version

FieldSrcTrgtRelationship components are available in API version 51.0 and later.

## Special Access Rules

To access this metadata type, you must have the Customize Application user permission.

## Fields

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d507163e118">Field Name</th>

              <th class="featureTableHeader  " id="d507163e121">Field Type</th>

              <th class="featureTableHeader  " id="d507163e124">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d507163e118" data-title="Field Name"><span class="keyword parmname">definitionCreationType</span></td>

              <td class="entry" headers="d507163e121" data-title="Field Type">DefinitionCreationType (enumeration of type string)</td>

              <td class="entry" headers="d507163e124" data-title="Description">Required. Describes whether this object was added by the user or as part of a standard
                taxonomy.<p class="p">Values are:</p>
                <ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">ADG</samp></li>

                  <li class="li"><samp class="codeph nolang">Activation_Audience</samp></li>

                  <li class="li"><samp class="codeph nolang">Bridge</samp></li>

                  <li class="li"><samp class="codeph nolang">Calculated_Insight</samp></li>

                  <li class="li"><samp class="codeph nolang">Chunk</samp></li>

                  <li class="li"><samp class="codeph nolang">Curated</samp></li>

                  <li class="li"><samp class="codeph nolang">Custom</samp></li>

                  <li class="li"><samp class="codeph nolang">Derived</samp></li>

                  <li class="li"><samp class="codeph nolang">Directory_Table</samp></li>

                  <li class="li"><samp class="codeph nolang">External</samp></li>

                  <li class="li"><samp class="codeph nolang">Ml_Prediction</samp></li>

                  <li class="li"><samp class="codeph nolang">Segment_Membership</samp></li>

                  <li class="li"><samp class="codeph nolang">Semantic</samp></li>

                  <li class="li"><samp class="codeph nolang">Standard</samp></li>

                  <li class="li"><samp class="codeph nolang">System</samp></li>

                  <li class="li"><samp class="codeph nolang">Transform</samp></li>

                  <li class="li"><samp class="codeph nolang">Vector_Embedding</samp></li>

                </ul>
                <p class="p">Valid values available in API version 67.0 and later are: </p>
                <a name="ul_vyb_bt3_tjc"><!-- --></a>
                <ul class="ul bulletList" id="ul_vyb_bt3_tjc">
                  <li class="li"><samp class="codeph nolang">Ad_Audience_Insights</samp></li>

                  <li class="li"><samp class="codeph nolang">Auxiliary</samp></li>

                  <li class="li"><samp class="codeph nolang">Clean_Room</samp></li>

                  <li class="li"><samp class="codeph nolang">Deletion_Records</samp></li>

                  <li class="li"><samp class="codeph nolang">Problem_Records</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d507163e118" data-title="Field Name"><span class="keyword parmname">lookupFieldName</span></td>

              <td class="entry" headers="d507163e121" data-title="Field Type">string</td>

              <td class="entry" headers="d507163e124" data-title="Description">Reference to the DMO lookup field.</td>

            </tr>

            <tr>
              <td class="entry" headers="d507163e118" data-title="Field Name"><span class="keyword parmname">masterLabel</span></td>

              <td class="entry" headers="d507163e121" data-title="Field Type">string</td>

              <td class="entry" headers="d507163e124" data-title="Description">Required. The UI name for the field relationship.</td>

            </tr>

            <tr>
              <td class="entry" headers="d507163e118" data-title="Field Name"><span class="keyword parmname">owner</span></td>

              <td class="entry" headers="d507163e121" data-title="Field Type">FieldSrcTrgtRelationshipOwner (enumeration of type string)</td>

              <td class="entry" headers="d507163e124" data-title="Description">Optional. The type of relationship that exists between the source and the target.
                <p class="p">Values are:</p>
                <ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">SObject</samp> - The source of the relationship
                    is a DMO and the target is a standard or custom SObject.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">DataCloud</samp> - Both the source and the target
                    of the relationship are DMOs.
                  </li>

                </ul>

                <p class="p">The field is needed only when the target is an SObject. The system can infer the
                  value when the target is a DMO.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d507163e118" data-title="Field Name"><span class="keyword parmname">relationshipCardinality</span></td>

              <td class="entry" headers="d507163e121" data-title="Field Type">RelationshipCardinality (enumeration of type string)</td>

              <td class="entry" headers="d507163e124" data-title="Description">Required. Cardinality of the relationship between the source and target fields.
                <p class="p">Values are:</p>
                <ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">ManyToOne</samp></li>

                  <li class="li"><samp class="codeph nolang">OneToOne</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d507163e118" data-title="Field Name"><span class="keyword parmname">sourceFieldName</span></td>

              <td class="entry" headers="d507163e121" data-title="Field Type">string</td>

              <td class="entry" headers="d507163e124" data-title="Description">Required. Name of the field that represents the source side of the
                relationship.</td>

            </tr>

            <tr>
              <td class="entry" headers="d507163e118" data-title="Field Name"><span class="keyword parmname">targetEntity</span></td>

              <td class="entry" headers="d507163e121" data-title="Field Type">string</td>

              <td class="entry" headers="d507163e124" data-title="Description">Optional. Name of the entity that represents the target side of the
                relationship. The target entity can be a DMO or a standard or custom SObject.
                The field is needed only when the target entity is an SObject. The system can
                infer the value when the target entity is a DMO.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d507163e118" data-title="Field Name"><span class="keyword parmname">targetFieldName</span></td>

              <td class="entry" headers="d507163e121" data-title="Field Type">string</td>

              <td class="entry" headers="d507163e124" data-title="Description">Required. Name of the field that represents the target side of the
                relationship.</td>

            </tr>

          </tbody>

        </table>