---
schema_version: "1"
id: d29f14307e1f7aa55500aa46adab0b4107955e861d50448fef779d83db824341
title: CustomField
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/customfield.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/customfield.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9118ef2734f82cf04ff8abc0727869dae46d26491d4036c7a56aa95ad7d5c89c
description: Represents the metadata associated with a field. Use this metadata type to create, update, or delete custom field definitions on standard, custom, and external objects or standard field definitions on standard objects.
---
# CustomField

Represents the metadata associated with a field. Use this metadata type to create, update, or delete custom field definitions on standard, custom, and external objects or standard field definitions on standard objects.

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.

![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.

Only standard fields that you can customize are supported, that is, standard fields to which you can add help text or turn on history tracking or Chatter feed tracking. Other standard fields aren't supported, including system fields (such as CreatedById or LastModifiedDate) and auto number fields. Some standard picklist fields aren’t supported. See [Unsupported Metadata Types](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_unsupported_types.htm "Some Salesforce features have metadata types that aren’t available in Metadata API. These metadata types can’t be retrieved or deployed with Metadata API. To make changes to these types, you must do it manually in each of your organizations."). By default, a custom object doesn’t have any standard fields that are customizable.

Specify the full name whenever you create or update a field. For example, a custom field on a custom object:

MyCustomObject\_\_c.MyCustomField\_\_c

An example of a custom field on a standard object:

Account.MyAcctCustomField\_\_c

An example of a standard field on a standard object:

Account.Phone

An example of a custom field on an external object:

MyExternalObject\_\_x.MyCustomField\_\_c

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

#### Note

In Metadata API, external objects are represented by the CustomObject metadata type.

These custom field types aren’t available for external objects.

- Auto number (available only with the cross-org adapter for Salesforce Connect)
- Currency (available only with the cross-org adapter for Salesforce Connect)
- Formula
- Location
- Master-detail relationship
- Picklist and multi-select picklist (available only with the cross-org adapter for Salesforce Connect)
- Rollup summary
- Text (encrypted)
- Text area (rich)

## Declarative Metadata File Suffix and Directory Location

Custom fields are user-defined fields and are part of the custom object or standard object definition. See [CustomObject](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/customobject.htm "Represents a custom object that stores data unique to your org or an external object that maps to data stored outside your org.") for more information. Standard fields are predefined on standard objects.

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

#### Note

Retrieving a component of this metadata type in a project makes the component appear in any Profile and PermissionSet components that are retrieved in the same package.

## Retrieving Fields on Custom or Standard Objects

When you retrieve a custom or standard object, you return everything associated with the object, except for standard fields that aren't customizable. You can also retrieve only specific fields for an object by explicitly naming the object and fields in package.xml. The following definition in package.xml creates the files objects/MyCustomObject\_\_c.object and objects/Account.object, each containing the requested field definitions.

<types\>
  <members\>MyCustomObject\_\_c.MyCustomField\_\_c</members\>
  <members\>Account.MyCustomAccountField\_\_c</members\>
  <members\>Account.Phone</members\>
  <name\>CustomField</name\>
</types\>

## Retrieving or Deploying Fields on Data 360 Objects

When you retrieve a Data 360 object, such as a data lake object (DLO) or data model object (DMO), not all custom field properties are returned. The properties returned depend on the data type of the custom field.

When you deploy a Data 360 object via Metadata API, in API version 60.0 or later, the call succeeds only if the properties are supported by the custom field's data type. If you include a property that isn't supported by the field's data type, the API returns an error.

Data 360 objects support these data types.

- Boolean/Checkbox
- Date
- DateTime
- Email
- Lookup (DMOs only)
- Number
- Percent
- Phone
- Text
- Url

## Version

Custom and standard fields are available in API version 10.0 and later.

## Fields

Unless otherwise noted, all fields are creatable, filterable, and nillable.

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



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

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

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

            </tr>

          </thead>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">reference</td>

              <td class="entry" headers="d50443e288" data-title="Description">Group associated with this field. The business owner group
                understands the importance of the field’s data to your company, and
                can be responsible for determining the minimum security
                classification. This field is available in API version 45.0 and
                later.</td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">reference</td>

              <td class="entry" headers="d50443e288" data-title="Description">Person associated with this field. The business owner understands
                the importance of the field’s data to your company, and can be
                responsible for determining the minimum security classification.
                This field is available in API version 45.0 and later.</td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">picklist</td>

              <td class="entry" headers="d50443e288" data-title="Description">Indicates if the field is in use. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Active</samp></li>

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

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

                </ul>
                This field is available in API version 45.0 and later</td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">Indicates whether the field is case-sensitive (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).<p class="p">For indirect lookup
                  relationship fields on external objects, this attribute affects
                  how this custom field’s values are matched against the values of
                  the <span class="keyword parmname">referenceTargetField</span>.</p>
              </td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">multipicklist</td>

              <td class="entry" headers="d50443e288" data-title="Description">Compliance acts, definitions, or regulations related to the
                field’s data. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">CCPA</samp></li>

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

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

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

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

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

                </ul>
                This field is available in API version 47.0 and later.</td>

            </tr>

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

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

              <td class="entry" headers="d50443e288" data-title="Description">Deprecated in the Spring ‘19 (API version 45.0) release.</td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_defaultValue_name"><a name="field_defaultValue_name"><!-- --></a>defaultValue</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="field_defaultValue_desc"><a name="field_defaultValue_desc"><!-- --></a>If specified, represents the
                  default value of the field.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="delete_constraint"><a name="delete_constraint"><!-- --></a>deleteConstraint</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">DeleteConstraint (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="del_constraint_def"><a name="del_constraint_def"><!-- --></a>Deletion options for lookup
                  relationships. Valid values are:</span>
                <ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">Cascade</samp>—Deletes the
                    lookup record and associated lookup fields.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">Restrict</samp>—Prevents the
                    record from being deleted if it's in a lookup
                    relationship.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">SetNull</samp>—Default value.
                    If the lookup record is deleted, the lookup field is
                    cleared.
                  </li>

                </ul>
                <p class="p" id="field_deleteConstraint_moreinfo"><a name="field_deleteConstraint_moreinfo"><!-- --></a>For more information on
                  lookup relationships, see <a class="xref" href="https://help.salesforce.com/s/articleView?id=platform.overview_of_custom_object_relationships.htm&amp;type=5&amp;language=en_US" target="_blank">Object
                    Relationships Overview</a>.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_deprecated"><a name="field_deprecated"><!-- --></a>deprecated</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">Reserved for future use.</td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="description_name"><a name="description_name"><!-- --></a>description</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="description_desc"><a name="description_desc"><!-- --></a>Description of the field.</span></td>

            </tr>

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

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

              <td class="entry" headers="d50443e288" data-title="Description">Display format of the field.</td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="isDisplayLocInDecimal_name"><a name="isDisplayLocInDecimal_name"><!-- --></a>displayLocationInDecimal</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="isDisplayLocInDec_desc"><a name="isDisplayLocInDec_desc"><!-- --></a>Indicates how the geolocation
                  values of a custom location field appear in the user interface.
                  If <samp class="codeph apex_code"><span class="keyword">true</span></samp>, the
                  geolocation values appear in decimal notation. If <samp class="codeph apex_code"><span class="keyword">false</span></samp>, the geolocation
                  values appear as degrees, minutes, and seconds.</span></td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">ElementType (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e288" data-title="Description">Reserved for future use.</td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">EncryptionScheme (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e288" data-title="Description">For encrypted fields, determines which encryption scheme a field
                takes. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">CaseInsensitiveDeterministicEncryption</samp></li>

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

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

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

                </ul>
                This value pertains to Shield Platform Encryption, not Classic
                Encryption. This field is available in API version 44.0 and
                later.</td>

            </tr>

            <tr>

              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_externalDeveloperName"><a name="field_externalDeveloperName"><!-- --></a>externalDeveloperName</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description">Available only for external objects. Name of the table column on
                the external data source that maps to this custom field in
                Salesforce. Corresponds to the <span class="keyword parmname">External Column
                  Name</span> in the user interface. This field is available
                in API version 32.0 and later.</td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="field_externalId_desc"><a name="field_externalId_desc"><!-- --></a>Indicates whether the field is an
                  external ID field (<samp class="codeph java">true</samp>) or
                  not (<samp class="codeph java">false</samp>). This property is
                  returned only if the custom field data type is auto number,
                  email, number, or text.</span></td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">FieldManageability (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e288" data-title="Description">Determines who can update the field after it’s released in a
                managed package. Valid values are:<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">Locked</samp>—The field can’t
                    be updated.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">DeveloperControlled</samp>—The
                    creator of the record can update the field with a package
                    upgrade.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">SubscriberControlled</samp>—Anyone with proper
                    permissions can update the field. The field can’t be updated
                    with a package upgrade.
                  </li>

                </ul>
                Available only for fields on custom metadata types. If the
                field type is <samp class="codeph nolang">MetadataRelationship</samp>, and the manageability of the
                entity definition field is:<ul class="ul bulletList">
                  <li class="li">Subscriber-controlled, then the Field Definition field must
                    be subscriber-controlled.</li>

                  <li class="li">Upgradeable, then the Field Definition field must be either
                    upgradeable or subscriber-controlled.</li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_formula_name"><a name="field_formula_name"><!-- --></a>formula</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="field_formula_desc"><a name="field_formula_desc"><!-- --></a>If specified, represents a formula on
                  the field.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_formulaTreatBlankAs_name"><a name="field_formulaTreatBlankAs_name"><!-- --></a>formulaTreatBlanksAs</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">TreatBlanksAs (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="field_formulaTreatBlankAs_desc"><a name="field_formulaTreatBlankAs_desc"><!-- --></a>Indicates how to treat
                  blanks in a formula. Valid values are <samp class="codeph nolang">BlankAsBlank</samp> and <samp class="codeph nolang">BlankAsZero</samp>.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_fullName"><a name="field_fullName"><!-- --></a>fullName</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description">Full name of the object. It must be specified when creating,
                updating, or deleting the object. See <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_createMetadata.htm" title="Adds one or more new metadata components to your organization synchronously."><samp class="codeph java">createMetadata()</samp></a> to see an
                example of this field specified for a call.<p class="p" id="no_null_para"><a name="no_null_para"><!-- --></a>This
                  value can't be <samp class="codeph java">null</samp>.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="globalPickList_name"><a name="globalPickList_name"><!-- --></a>globalPicklist</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description">If this custom field is a picklist that’s based on a global
                picklist, <span class="keyword parmname">globalPicklist</span> is the name of the
                global picklist whose value set this picklist inherits. A custom
                picklist that’s based on a global picklist is restricted. You can
                only add or remove values by editing the global picklist. This field
                is available only in API version 37.0. </td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">Indicates whether the field is indexed (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>). If this field is unique or the
                <span class="keyword parmname">externalId</span> is set <samp class="codeph java">true</samp>, the <span class="keyword parmname">isIndexed</span> value is set
                to true. This field is available only in API version 14.0 and
                earlier.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="inlinehelptext_name"><a name="inlinehelptext_name"><!-- --></a>inlineHelpText</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="inlinehelptext_desc"><a name="inlinehelptext_desc"><!-- --></a>Content of field-level help. For
                  more information, see <a class="xref" href="https://help.salesforce.com/s/articleView?id=platform.customhelp_defining_field_level_help.htm&amp;type=5&amp;language=en_US" target="_blank">Define Field-Level Help</a>.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name">
                <span class="keyword parmname" id="field_isAIPredictionField"><a name="field_isAIPredictionField"><!-- --></a>isAIPredictionField</span>
              </td>

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="ffield_isAIPredictionField_desc"><a name="ffield_isAIPredictionField_desc"><!-- --></a>Available for number
                  type custom fields when you use Einstein Prediction Builder.
                  Indicates whether the field can store and display Einstein
                  prediction data on an object (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>). Use Einstein Prediction Builder to
                  determine the data for the target field.</span> This field is
                available in API version 43.0 and later.
              </td>

            </tr>

            <tr>

              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_isFilteringDisabled"><a name="field_isFilteringDisabled"><!-- --></a>isFilteringDisabled</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="field_isFilteringDisabled_desc"><a name="field_isFilteringDisabled_desc"><!-- --></a>Available only for
                  external objects. Indicates whether the custom field is
                  available in filters (<samp class="codeph java">true</samp>)
                  or not (<samp class="codeph java">false</samp>).</span> This
                field is available in API version 32.0 and later.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_isNameField"><a name="field_isNameField"><!-- --></a>isNameField</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="field_isNameField_desc"><a name="field_isNameField_desc"><!-- --></a>Available only for external
                  object fields of type text. Indicates whether the custom field
                  is the name field (<samp class="codeph java">true</samp>) or
                  not (<samp class="codeph java">false</samp>). For each
                  external object, you can specify one field as the name
                  field.</span> If you set this value to <samp class="codeph java">true</samp>, ensure the external table column identified by
                the <span class="keyword parmname">externalDeveloperName</span> attribute contains
                name values. This field is available in API version 32.0 and
                later.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_isSortingDisabled"><a name="field_isSortingDisabled"><!-- --></a>isSortingDisabled</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="field_isSortingDisabled_desc"><a name="field_isSortingDisabled_desc"><!-- --></a>Available only for external
                  objects. Indicates whether the custom field is sortable (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</span> This field is
                available in API version 32.0 and later.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_label"><a name="field_label"><!-- --></a>label</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="field_label_desc"><a name="field_label_desc"><!-- --></a>Label for the field.</span> You can't
                update the label for standard picklist fields, such as the
                <span class="keyword parmname">Industry</span> field for accounts.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="length_name"><a name="length_name"><!-- --></a>length</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">int</td>

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="length_desc"><a name="length_desc"><!-- --></a>Length of the field.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_lookupFilter"><a name="field_lookupFilter"><!-- --></a>lookupFilter</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">LookupFilter</td>

              <td class="entry" headers="d50443e288" data-title="Description">Metadata associated with a lookup
                filter definition. This field is only available in API version 30.0
                and earlier. <span class="ph" id="namedfilter_vs_lookup_filter"><a name="namedfilter_vs_lookup_filter"><!-- --></a>The metadata
                  associated with a lookup filter is now represented by the
                  <span class="keyword parmname">lookupFilter</span> field in the CustomField
                  component.</span>
                <p class="p">LookupFilter isn't supported on the article
                  type object.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="mask_kar"><a name="mask_kar"><!-- --></a>maskChar</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">EncryptedFieldMaskChar (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <p class="p">For encrypted fields, specifies the character to be used as a
                  mask. Valid values are:</p>

                <ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">asterisk</samp></li>

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

                </ul>

                <p class="p">This value pertains to Classic Encryption, not Shield Platform
                  Encryption. For more information on encrypted fields, see <a class="xref" href="https://help.salesforce.com/s/articleView?id=platform.fields_about_encrypted_fields.htm&amp;type=5&amp;language=en_US" target="_blank">Classic
                    Encryption for Custom Fields in Salesforce Help</a>.</p>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="masktype"><a name="masktype"><!-- --></a>maskType</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">EncryptedFieldMaskType (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <p class="p">For encrypted text fields, specifies the format of the masked
                  and unmasked characters in the field. Valid values are:</p>
                <ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">all</samp>—all characters in
                    the field are hidden. This option is equivalent to the
                    <span class="keyword parmname">Mask All Characters</span> option in
                    Salesforce.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">creditCard</samp>—The first 12
                    characters are hidden and the last four appear. This option
                    is equivalent to the <span class="keyword parmname">Credit Card Number</span>
                    option in Salesforce.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">lastFour</samp>—all characters
                    are hidden but the last four appear. This option is
                    equivalent to the <span class="keyword parmname">Last Four Characters
                      Clear</span> option in Salesforce.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">nino</samp>—all characters are
                    hidden. Salesforce automatically inserts spaces after each
                    pair of characters if the field contains nine characters.
                    This option is equivalent to the <span class="keyword parmname">National
                      Insurance Number</span> option in Salesforce.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">sin</samp>—all characters are
                    hidden but the last four appear This option is equivalent to
                    the <span class="keyword parmname">Social Insurance Number</span> option in
                    Salesforce.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">ssn</samp>—The first five
                    characters are hidden and the last four appear This option
                    is equivalent to the <span class="keyword parmname">Social Security
                      Number</span> option in Salesforce.
                  </li>

                </ul>
                This value pertains to Classic Encryption, not Shield Platform
                Encryption. For more information on encrypted fields, see <a class="xref" href="https://help.salesforce.com/s/articleView?id=platform.fields_about_encrypted_fields.htm&amp;type=5&amp;language=en_US" target="_blank">Classic
                  Encryption for Custom Fields in Salesforce Help</a>.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_metadataRelationshipControllingField_name"><a name="field_metadataRelationshipControllingField_name"><!-- --></a>metadataRelationshipControllingField</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="field_metadataRelationshipControllingField_desc"><a name="field_metadataRelationshipControllingField_desc"><!-- --></a>In
                  custom metadata relationships, represents the controlling field
                  that specifies the standard or custom object in an entity
                  definition metadata relationship. Required when creating a field
                  definition or entity particle metadata relationship on a custom
                  metadata type. The object specified in the controlling field
                  determines the values available in its dependent field
                  definition or entity particle. For example, specifying the
                  Account object filters the available fields in the field
                  definition to Account fields only.</span> This field is available
                in API version 39.0 and later.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="picklist_field"><a name="picklist_field"><!-- --></a>picklist</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_picklist.htm" title="Deprecated. Represents a picklist (or dependent picklist) definition for a custom field in a custom object or a custom or standard field in a standard object, such as an account.">Picklist</a></td>

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="picklist_field_desc"><a name="picklist_field_desc"><!-- --></a>If specified, the field is a
                  picklist, and this field counts the picklist values and labels.
                  This field is available only in API version 37.0 and earlier. In
                  later versions, use <span class="keyword parmname">valueSet</span>
                  instead.</span></td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">Indicates whether existing rows are going to be populated
                (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">int</td>

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="field_precision_desc"><a name="field_precision_desc"><!-- --></a>Precision, or number of digits in a
                  number value. For example, the number 256.99 has a precision
                  value of 5.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_referenceTargetField"><a name="field_referenceTargetField"><!-- --></a>referenceTargetField</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description">Specifies the custom field on the parent object to match against
                this indirect lookup relationship field, whose values come from an
                external data source. The specified custom field on the parent
                object must have both <span class="keyword parmname">externalId</span> and
                <span class="keyword parmname">unique</span> set to <samp class="codeph java">true</samp>. Available only for indirect lookup relationship
                fields on external objects. This field is available in API version
                32.0 and later.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_referenceTo_name"><a name="field_referenceTo_name"><!-- --></a>referenceTo</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="field_referenceTo_desc"><a name="field_referenceTo_desc"><!-- --></a>Reference this field has to
                  another object.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_relationshipLabel_name"><a name="field_relationshipLabel_name"><!-- --></a>relationshipLabel</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="field_relationshipLabel_desc"><a name="field_relationshipLabel_desc"><!-- --></a>Label for the
                  relationship.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_relationshipName_name"><a name="field_relationshipName_name"><!-- --></a>relationshipName</span></td>

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

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="field_relationshipName_desc"><a name="field_relationshipName_desc"><!-- --></a>Value for one-to-many
                  relationships. For example, if MyObject has a relationship to
                  YourObject, the relationship name can be
                  YourObjects.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="relationshiporder_name"><a name="relationshiporder_name"><!-- --></a>relationshipOrder</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">int</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="relationshiporder_desc1"><a name="relationshiporder_desc1"><!-- --></a>This field is valid for all
                  master-detail relationships, but the value is only non-zero for
                  junction objects. A junction object has two master-detail
                  relationships, and is analogous to an association table in a
                  many-to-many relationship. Junction objects must define one
                  parent object as primary (0), the other as secondary (1). The
                  definition of primary or secondary affects delete behavior and
                  inheritance of look and feel, and record ownership for junction
                  objects.</span>
                <p class="p" id="relationshiporder_desc2"><a name="relationshiporder_desc2"><!-- --></a>0 or 1 are the only
                  valid values, and 0 is always the value for objects that aren't
                  junction objects.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="isUpdateableMasterDetail_name"><a name="isUpdateableMasterDetail_name"><!-- --></a>reparentableMasterDetail</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="isUpdateableMasterDetail_desc"><a name="isUpdateableMasterDetail_desc"><!-- --></a>Indicates whether the
                  child records in a master-detail relationship on a custom object
                  can be reparented to different parent records (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>). The default value is
                  <samp class="codeph java">false</samp>.</span>
                <p class="p">This field
                  is available in API version 25.0 and later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_required_name"><a name="field_required_name"><!-- --></a>required</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="field_required_desc"><a name="field_required_desc"><!-- --></a>Indicates whether the field requires
                  a value on creation (<samp class="codeph java">true</samp>) or
                  not (<samp class="codeph java">false</samp>).</span></td>

            </tr>

            <tr>

              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="field_scale"><a name="field_scale"><!-- --></a>scale</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">int</td>

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="field_scale_desc"><a name="field_scale_desc"><!-- --></a>Scale, or the number of digits to the
                  right of the decimal point in a number. For example, the number
                  256.99 has a scale of 2.</span></td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">picklist</td>

              <td class="entry" headers="d50443e288" data-title="Description">Sensitivity of the data contained in the field. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Public</samp></li>

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

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

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

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

                </ul>
                This field is available in API version 45.0 and later.</td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">int</td>

              <td class="entry" headers="d50443e288" data-title="Description">Starting number for the field. When you create records, the
                <span class="keyword parmname">Starting Number</span> value increments to store
                the number that will be assigned to the next auto number field
                created. <ul class="ul bulletList">
                  <li class="li">You can’t retrieve the starting number of an auto number
                    field through the Metadata API. To specify a
                    <span class="keyword parmname">Starting Number</span> while deploying,
                    add a <samp class="codeph xml">startingNumber</samp> tag
                    for your field to your <span class="ph filepath">package.xml</span>
                    file. For example: <samp class="codeph xml"><span class="tag">&lt;startingNumber</span>&gt;42<span class="tag">&lt;/startingNumber</span>&gt;</samp>
                  </li>

                  <li class="li">If you deploy without specifying a <span class="keyword parmname">Starting
                      Number</span> value in your
                    <span class="ph filepath">package.xml</span> file, the default
                    starting number for standard fields is <samp class="codeph nolang">0</samp>. The default starting
                    number for custom fields is <samp class="codeph nolang">1</samp>.
                  </li>

                </ul>
              </td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">Indicates whether to remove markup (<samp class="codeph java">true</samp>) or preserve it (<samp class="codeph java">false</samp>). Used when converting a rich text area to a
                long text area.</td>

            </tr>

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

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

              <td class="entry" headers="d50443e288" data-title="Description">Field on the detail row that’s being summarized. This field can't
                be null unless the <span class="keyword parmname">summaryOperation</span> value is
                <samp class="codeph nolang">count</samp>.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="summaryfilteritems"><a name="summaryfilteritems"><!-- --></a>summaryFilterItems</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type"><a class="xref" href="#filteritem">FilterItem[]</a></td>

              <td class="entry" headers="d50443e288" data-title="Description">Set of filter conditions for this field if it's a summary field.
                This field is summed in the child if the filter conditions are
                met.</td>

            </tr>

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

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

              <td class="entry" headers="d50443e288" data-title="Description">Master-detail field on the child that defines the relationship
                between the parent and the child.</td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="summaryoperation"><a name="summaryoperation"><!-- --></a>summaryOperation</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">SummaryOperations (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e288" data-title="Description">Represents the type of sum operation to be performed. Valid
                values are:
                <ul class="ul bulletList">
                  <li class="li"><samp class="codeph soql">Count</samp></li>

                  <li class="li"><samp class="codeph soql">Min</samp></li>

                  <li class="li"><samp class="codeph soql">Max</samp></li>

                  <li class="li"><samp class="codeph soql">Sum</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="trackfeedhistory"><a name="trackfeedhistory"><!-- --></a>trackFeedHistory</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="trackfeedhistory_desc"><a name="trackfeedhistory_desc"><!-- --></a>Indicates whether the field is
                  enabled for feed tracking (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</span> To set this field to <samp class="codeph java">true</samp>, the
                <span class="keyword parmname">enableFeeds</span> field on the associated <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/customobject.htm" title="Represents a custom object that stores data unique to your org or an external object that maps to data stored outside your org.">CustomObject</a>
                must also be <samp class="codeph java">true</samp>. For more
                information, see <a class="xref" href="https://help.salesforce.com/s/articleView?id=experience.collab_feed_tracking.htm&amp;type=5&amp;language=en_US" target="_blank">Customize
                  Chatter Feed Tracking</a>. <p class="p">This field is available in API
                  version 18.0 and later.</p>
              </td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="field_track_hist_desc"><a name="field_track_hist_desc"><!-- --></a>Indicates whether history tracking
                  is enabled for the field (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</span> Also available for standard object
                fields (picklist and lookup fields only) in API version 30.0 and
                later.<p class="p">To set <span class="keyword parmname">trackHistory</span> to
                  <span class="keyword parmname">true</span>, the
                  <span class="keyword parmname">enableHistory</span> field on the associated
                  standard or custom object must also be
                  <span class="keyword parmname">true</span>.
                </p>
                <p class="p">Field history tracking isn’t
                  available for external objects.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="tracktrending_name"><a name="tracktrending_name"><!-- --></a>trackTrending</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="field_track_trending_desc"><a name="field_track_trending_desc"><!-- --></a>Indicates whether historical
                  trending data is captured for the field (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</span>
                <span class="ph" id="field_tracktrending_desc2"><a name="field_tracktrending_desc2"><!-- --></a>An object is enabled for
                  historical trending if this attribute is <samp class="codeph java">true</samp> for at least one field.</span>
                This field is available in API version 29.0 and later.<p class="p">For more
                  information, see <a class="xref" href="https://help.salesforce.com/s/articleView?id=analytics.reports_historical_trending.htm&amp;type=5&amp;language=en_US" target="_blank">Report on
                    Historical Changes</a>.</p>
              </td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">Relevant only for a checkbox field. If set, <samp class="codeph nolang">true</samp> values are built into the
                index. This field is available only in API version 14.0 and
                earlier.</td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="type_name"><a name="type_name"><!-- --></a>type</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">FieldType (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e288" data-title="Description">Type of field. Optional for standard fields on standard objects.
                This field is included for some standard field types, such as
                picklist or lookup, but not for others. The
                <span class="keyword parmname">type</span> field is included for custom
                fields.
              </td>

            </tr>

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

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">Indicates whether the field is unique (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="valueSet_name"><a name="valueSet_name"><!-- --></a>valueSet</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">ValueSet</td>

              <td class="entry" headers="d50443e288" data-title="Description">Set of values that make up a picklist on a custom field. Each
                value is defined as a <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_customvalue.htm" title="Represents the definition of a value used in a global value set or local custom picklist. Custom picklist fields can be local and unique, or can inherit their values from a global picklist (called a global value set in API version 38.0). This type extends the Metadata metadata type and inherits its fullName field.">CustomValue</a>. If this custom field is a picklist that
                uses a global value set, <span class="keyword parmname">valueSet</span> is the name
                of the global value set whose values this picklist inherits. A
                custom picklist that uses a global value set is restricted. You can
                only add or remove values by editing the global value set. <p class="p">A
                  ValueSet component has either a
                  <span class="keyword parmname">valueSetDefinition</span> or a
                  <span class="keyword parmname">valueName</span> specified, but never
                  both.
                </p>
                <p class="p">This field is available in API version 38.0 and
                  later.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="visiblelines_name"><a name="visiblelines_name"><!-- --></a>visibleLines</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">int</td>

              <td class="entry" headers="d50443e288" data-title="Description"><span class="ph" id="visiblelines_desc"><a name="visiblelines_desc"><!-- --></a>Number of lines shown for the
                  field.</span></td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e282" data-title="Field Name"><span class="keyword parmname" id="writerequiresmasterread_name"><a name="writerequiresmasterread_name"><!-- --></a>writeRequiresMasterRead</span></td>

              <td class="entry" headers="d50443e285" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e288" data-title="Description">
                <span class="ph" id="write_req_mast_read_desc1"><a name="write_req_mast_read_desc1"><!-- --></a>Minimum sharing access level
                  required on the primary record to create, edit, or delete child
                  records. This field applies only to master-detail or junction
                  object custom field types.</span><a name="write_req_mast_read_desc2"><!-- --></a>
                <ul class="ul bulletList" id="write_req_mast_read_desc2">
                  <li class="li">
                    <samp class="codeph java">true</samp>—Allows users with
                    Read access to the primary record permission to create,
                    edit, or delete child records. This setting makes sharing
                    less restrictive.
                  </li>

                  <li class="li">
                    <samp class="codeph java">false</samp>—Allows users with
                    Read/Write access to the primary record permission to
                    create, edit, or delete child records. This setting is more
                    restrictive than <samp class="codeph java">true</samp>,
                    and is the default value.
                  </li>

                </ul>
                <p class="p" id="write_req_mast_read_desc3"><a name="write_req_mast_read_desc3"><!-- --></a>For junction objects, the
                  most restrictive access from the two parents is enforced. For
                  example, if you set to <samp class="codeph java">true</samp>
                  on both master-detail fields, but users have Read access to one
                  primary record and Read/Write access to the other primary
                  record, users aren't able to create, edit, or delete child
                  records.</p>
              </td>

            </tr>

          </tbody>

        </table>

Fields use additional data types. For more information, see [Metadata Field Types](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_field_types.htm "These field types extend the field types described in the Salesforce Object Reference.").

## MktDataModelFieldAttributes

Represents the Data 360 data model field attributes for a custom field. This type is a subtype of CustomField.

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



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

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

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

            </tr>

          </thead>

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

              <td class="entry" headers="d50443e1772" data-title="Field Type">DefinitionCreationType <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a>
              </td>

              <td class="entry" headers="d50443e1775" data-title="Description">How the object was added. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Bridge</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">Standard</samp></li>

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

                </ul>
                <p class="p">In API version 62.0 and later, additional valid values are:
                </p>
                <a name="ul_wgp_dzd_t2c"><!-- --></a>
                <ul class="ul bulletList" id="ul_wgp_dzd_t2c">
                  <li class="li">
                    <samp class="codeph nolang">Activation_Audience</samp>
                  </li>

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

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

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

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

                  <li class="li"><samp class="codeph nolang">Chunk</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">Problem_Records</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">Transform</samp></li>

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

                </ul>
                <p class="p">In API version 67.0 and later, additional valid values are:
                </p>
                <a name="ul_ypj_l4f_sjc_cf"><!-- --></a>
                <ul class="ul bulletList" id="ul_ypj_l4f_sjc_cf">
                  <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="d50443e1769" data-title="Field Name"><span class="keyword parmname">invalidMergeActionType</span></td>

              <td class="entry" headers="d50443e1772" data-title="Field Type">InvalidMergeActionType (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e1775" data-title="Description">Action to take when an invalid merge occurs for a field used to
                merge data. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Drop</samp></li>

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

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

                </ul>
              </td>

            </tr>

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

              <td class="entry" headers="d50443e1772" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e1775" data-title="Description">Indicates whether existing data is queried for the field’s unique
                values (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</td>

            </tr>

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

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

              <td class="entry" headers="d50443e1775" data-title="Description">Custom label that overrides the field’s default display label in
                the data model. If unspecified, the default label is used. Maximum
                length is 255 characters. This field is available in API version
                65.0 and later.</td>

            </tr>

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

              <td class="entry" headers="d50443e1772" data-title="Field Type">MappingAlertType (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e1775" data-title="Description">
                <p dir="ltr" class="p">Type of alert shown when this field isn't mapped in the
                  data model. This field is available in API version 65.0 and
                  later. Valid values are:</p>

                <a name="ul_cyb_rbk_lkc"><!-- --></a>
                <ul class="ul bulletList" id="ul_cyb_rbk_lkc">
                  <li class="li">
                    <samp class="codeph nolang">None</samp>—No alert is shown when the mapping is
                    incomplete or invalid.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">Warning</samp>—A non-blocking warning is shown
                    when the field mapping is incomplete or invalid.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">Error</samp>—A blocking error prevents saving when
                    the mapping is invalid.
                  </li>

                </ul>

              </td>

            </tr>

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

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

              <td class="entry" headers="d50443e1775" data-title="Description">Master label for the field. Maximum length is 40 characters. This
                field is available in API version 65.0 and later.</td>

            </tr>

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

              <td class="entry" headers="d50443e1772" data-title="Field Type">int</td>

              <td class="entry" headers="d50443e1775" data-title="Description">Position of the field in the primary key, starting at
                <samp class="codeph nolang">1</samp>. If specified, the field is part of the
                primary key. For a compound primary key, the value specifies the
                field’s position in the key.
              </td>

            </tr>

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

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


              <td class="entry" headers="d50443e1775" data-title="Description">Developer name of the field in the reference model. Applies only
                to standard fields.</td>

            </tr>

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

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

              <td class="entry" headers="d50443e1775" data-title="Description">Developer name of the MktDataLakeSrcKeyQualifier configured in
                the field.</td>

            </tr>

          </tbody>

        </table>

## MktDataLakeFieldAttributes

Represents the Data 360 data lake field attributes for a custom field. This type is a subtype of CustomField. Available in API version 50.0 or later.

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



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

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

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

            </tr>

          </thead>

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

              <td class="entry" headers="d50443e2090" data-title="Field Type">DefinitionCreationType (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e2093" data-title="Description">How the object was added. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Bridge</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">Standard</samp></li>

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

                </ul>
                <p class="p">In API version 62.0 and later, additional valid values are:
                </p>
                <a name="ul_pvy_lzd_t2c"><!-- --></a>
                <ul class="ul bulletList" id="ul_pvy_lzd_t2c">
                  <li class="li"><samp class="codeph nolang">ADG</samp></li>

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

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

                  <li class="li"><samp class="codeph nolang">Chunk</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">Semantic</samp></li>

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

                </ul>
              </td>

            </tr>

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

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

              <td class="entry" headers="d50443e2093" data-title="Description">Optional date format of date and time fields. This field is
                available only in API version 55.0 and earlier.</td>

            </tr>

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

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

              <td class="entry" headers="d50443e2093" data-title="Description">External name of this field.</td>

            </tr>

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

              <td class="entry" headers="d50443e2090" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e2093" data-title="Description">Indicates whether this field contains the event date for
                behavioral model area objects that are used to partition data
                (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</td>

            </tr>

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

              <td class="entry" headers="d50443e2090" data-title="Field Type">int</td>

              <td class="entry" headers="d50443e2093" data-title="Description">Position of the field in the primary key, starting at
                <samp class="codeph nolang">1</samp>. If specified, the field is part of the
                primary key. For a compound primary key, the value specifies the
                field’s position in the key.
              </td>

            </tr>

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

              <td class="entry" headers="d50443e2090" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e2093" data-title="Description">Indicates whether this field contains the value for internal
                organization (<samp class="codeph java">true</samp>) or not
                (<samp class="codeph java">false</samp>). The value of the
                field is the name of the internal organization. Landing objects
                don't have access to the Salesforce ID and use the developer name
                instead.</td>

            </tr>

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

              <td class="entry" headers="d50443e2090" data-title="Field Type">boolean</td>

              <td class="entry" headers="d50443e2093" data-title="Description">Indicates whether the field is the record modified field used to
                calibrate latest record version (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>).</td>

            </tr>

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

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

              <td class="entry" headers="d50443e2093" data-title="Description">Developer name of the MktDataLakeSrcKeyQualifier configured in
                the field. This field is available in API version 55.0 and
                later.</td>

            </tr>

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

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

              <td class="entry" headers="d50443e2093" data-title="Description">Developer name of key qualifier field. This field is available in
                API version 55.0 and later.</td>

            </tr>

          </tbody>

        </table>

## LookupFilter

Represents the metadata associated with a lookup filter. Replaces the NamedFilter component, which was removed as of API version 30.0. LookupFilter is available in API version 30.0 and later.

| Field | Field Type | Description |
| --- | --- | --- |
| active | boolean | Required. Indicates whether the lookup filter is active (true) or not (false). |
| booleanFilter | string | Advanced filter conditions. |
| description | string | Description of what this filter does. |
| errorMessage | string | Error message that appears if the lookup filter fails. |
| filterItems | [FilterItem\[\]](#filteritem) | Required. Set of filter conditions. You can have up to 10 FilterItems per lookup filter. |
| infoMessage | string | Information message displayed on the page. Use this field describe things the user possibly doesn't understand, such as why certain items are excluded in the lookup filter. |
| isOptional | boolean | Required. Indicates whether the lookup filter is optional (true) or not (false). |

Lookup filters use additional data types. For more information, see [Metadata Field Types](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_field_types.htm "These field types extend the field types described in the Salesforce Object Reference.").

## FilterItem

Represents one entry in a set of filter criteria.

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



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

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

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

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d50443e2491" data-title="Field"><span class="keyword parmname">field</span></td>

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

              <td class="entry" headers="d50443e2497" data-title="Description">Name of the field specified in the filter.</td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e2491" data-title="Field"><span class="keyword parmname">operation</span></td>

              <td class="entry" headers="d50443e2494" data-title="Field Type">FilterOperation (<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_objects_intro.htm#enumeration_title">enumeration</a> of type string)</td>

              <td class="entry" headers="d50443e2497" data-title="Description">
                <span class="ph" id="field_operation_desc"><a name="field_operation_desc"><!-- --></a>Filter operation for this filter
                  item. Valid values are:</span><a name="filteroperation_enum"><!-- --></a>
                <ul class="ul bulletList" id="filteroperation_enum">
                  <li class="li"><samp class="codeph soql">equals</samp></li>

                  <li class="li"><samp class="codeph soql">notEqual</samp></li>

                  <li class="li"><samp class="codeph soql">lessThan</samp></li>

                  <li class="li"><samp class="codeph soql">greaterThan</samp></li>

                  <li class="li"><samp class="codeph soql">lessOrEqual</samp></li>

                  <li class="li"><samp class="codeph soql">greaterOrEqual</samp></li>

                  <li class="li"><samp class="codeph soql">contains</samp></li>

                  <li class="li"><samp class="codeph soql">notContain</samp></li>

                  <li class="li"><samp class="codeph soql">startsWith</samp></li>

                  <li class="li"><samp class="codeph soql">includes</samp></li>

                  <li class="li"><samp class="codeph soql">excludes</samp></li>

                  <li class="li">
                    <samp class="codeph soql">within</samp> (<samp class="codeph nolang">DISTANCE</samp> criteria
                    only)
                  </li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e2491" data-title="Field"><span class="keyword parmname">value</span></td>

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

              <td class="entry" headers="d50443e2497" data-title="Description">Value of the filter item being operated on, for example, if the
                filter is <samp class="codeph nolang">my_number_field__c &gt;
                  1</samp>, the value of <samp class="codeph nolang">value</samp> is <samp class="codeph nolang">1</samp>.</td>

            </tr>

            <tr>
              <td class="entry" headers="d50443e2491" data-title="Field"><span class="keyword parmname" id="valueField_name"><a name="valueField_name"><!-- --></a>valueField</span></td>

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

              <td class="entry" headers="d50443e2497" data-title="Description">Final column in the filter contains a field or a field value.
                Approval processes don’t support <span class="keyword parmname">valueField</span>
                entries in filter criteria.</td>

            </tr>

          </tbody>

        </table>

## Declarative Metadata Sample Definition

The following example shows a field definition for a custom field that’s named Comments\_\_c.

<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
....
<fields\>
        <fullName\>Comments\_\_c</fullName\>
        <description\>Add your comments about this object here</description\>
        <inlineHelpText\>This field contains help text for this object</inlineHelpText\>
        <label\>Comments</label\>
        <length\>32000</length\>
        <type\>LongTextArea</type\>
        <visibleLines\>30</visibleLines\>
</fields\>
....
</CustomObject\>

This XML is the definition for two fields on the Account standard object—a custom field (MyCustomAccountField\_\_c), and a standard field (Phone) that has history tracking enabled.

<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
    <fields\>
        <fullName\>MyCustomAccountField\_\_c</fullName\>
        <description\>A custom field on the Account standard object.</description\>
        <externalId\>false</externalId\>
        <inlineHelpText\>Some help text.</inlineHelpText\>
        <label\>MyCustomAccountField</label\>
        <length\>100</length\>
        <required\>false</required\>
        <trackFeedHistory\>false</trackFeedHistory\>
        <trackHistory\>false</trackHistory\>
        <type\>Text</type\>
        <unique\>false</unique\>
    </fields\>
    <fields\>
        <fullName\>Phone</fullName\>
        <trackFeedHistory\>false</trackFeedHistory\>
        <trackHistory\>true</trackHistory\>
    </fields\>
</CustomObject\>

## Wildcard Support in the Manifest File

This metadata type doesn’t support 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](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based_zip_file.htm "The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.").

- [← Previous](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_compactlayout.htm "CompactLayout")
- [Next →](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_fieldset.htm "FieldSet")

#### See Also

- [CustomObject](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/customobject.htm "Represents a custom object that stores data unique to your org or an external object that maps to data stored outside your org.")
- [Picklist (Including Dependent Picklist)](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_picklist.htm "Deprecated. Represents a picklist (or dependent picklist) definition for a custom field in a custom object or a custom or standard field in a standard object, such as an account.")
- [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.")
- [NamedFilter](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/namedfilter.htm "Represents the metadata associated with a lookup filter. This metadata type is used to create, update, or delete lookup filter definitions. This component has been removed as of API version 30.0 and is only available in previous API versions. The metadata associated with a lookup filter is now represented by the lookupFilter field in the CustomField component.")