---
schema_version: "1"
id: e85f26ae3238c75dd853597b114ff3afa3a86479ef45ea821756809f8eaeb007
title: SourceTrackingSettings (Beta)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_sourcetrackingsettings.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_sourcetrackingsettings.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 81cfe6a2ad4d23564b171b98cb461a73b63846278b307cee7fabaf46386408c2
description: Represents settings for source tracking, so that changes you make in your Developer and Developer Pro sandboxes or local workspace can be tracked. This type extends the Metadata metadata type and inherits its fullName field.
---
# SourceTrackingSettings (Beta)

Represents settings for source tracking, so that changes you make in your Developer and Developer Pro sandboxes or local workspace can be tracked. This type extends the Metadata metadata type and inherits its fullName field.

In the package manifest, all organization settings metadata types are accessed using the Settings name. See [Settings](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_settings.htm "Represents the organization settings related to a feature. For example, your password policies, session settings and network access controls are all available in the SecuritySettings component type.") for details.

## File Suffix and Directory Location

SourceTrackingSettings values are stored in the SourceTracking.settings file in the settings folder. The .settings files are different from other named components because there is only one settings file for each settings component.

## Version

SourceTrackingSettings is available in API version 49.0 and later.

## Fields

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



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

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

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

            </tr>

          </thead>

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

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

              <td class="entry" headers="d878955e108" data-title="Description">Indicates whether to enable source tracking automatically when Developer or
                Developer Pro sandboxes are created or refreshed (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). The default
                value is <samp class="codeph nolang">false</samp>.<p class="p">If you set
                  <span class="keyword parmname">enableSourceTrackingSandboxes</span> back to <samp class="codeph nolang">false</samp> after it was enabled, a sandbox that is
                  tracking source changes continues to do so until it is refreshed.
                </p>
                <div class="p">
                  <div class="box message info">
                    <div class="inner">
                      <div class="bd">
                        <div class="media">
                          <img class="img mtm" src="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note.png" alt="Note">
                          <div class="mediaBd">
                            <h4 class="mbs">Note</h4>
                            <p>You don't need to have the Developer Hub (DevHub) enabled in the same org to
                              enable source tracking.</p>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>

                </div>
                <p class="p">This field applies to production orgs only; in other orgs, this field is
                  ignored.</p>
              </td>

            </tr>

          </tbody>

        </table>

## Declarative Metadata Sample Definition

The following is an example of a SourceTrackingSettings component.

<?xml version="1.0" encoding="UTF-8"?>
<SourceTrackingSettings xmlns="http://soap.sforce.com/2006/04/metadata">
    <enableSourceTrackingSandboxes\>true</enableSourceTrackingSandboxes\>
</SourceTrackingSettings\>

## Wildcard Support in the Manifest File

The wildcard character \* (asterisk) in the package.xml manifest file doesn’t apply to metadata types for feature settings. The wildcard applies only when retrieving all settings, not for an individual setting. For details, see [Settings](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_settings.htm). For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).