---
schema_version: "1"
id: eb0c969c51c1a079d7590f3b4f24a8ab4f7628951f52ecbcdd2debec7b2e2c1c
title: ApexSettings
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_apexsettings.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_apexsettings.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a8e04859f6bdcc8b1637919362de90264e99c05028ba86f529befd2f94155a5b
description: Represents Apex-related org settings. This type extends the Metadata metadata type and inherits its fullName field.
---
# ApexSettings

Represents Apex-related org settings. 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

ApexSettings values are stored in the Apex.settings file in the settings directory of the corresponding package directory. The .settings files are different from other named components, because there’s only one settings file for each settings component.

## Version

ApexSettings components are available in API version 47.0 and later.

## Fields

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



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

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

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

            </tr>

          </thead>

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

              <td class="entry" headers="d137042e105" data-title="Field Type">integer</td>

              <td class="entry" headers="d137042e108" data-title="Description">Use this field to specify an override value that is less than the
                licensed rolling 24-hour asynchronous Apex job limit. The org
                defaults to the licensed asynchronous limit if the override is
                <samp class="codeph nolang">0</samp>, <samp class="codeph nolang">null</samp>, or omitted. Applicable to
                only nonproduction orgs, including sandboxes, scratch orgs, and
                Developer Edition orgs. Used for testing elastic processing
                behavior. See <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/apex_limits_elastic_limits.htm" target="_blank">Elastic Limits for Asynchronous
                  Apex Jobs (Beta)</a>. Available in API version 68.0 and
                later.
              </td>

            </tr>

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

              <td class="entry" headers="d137042e105" data-title="Field Type">integer</td>

              <td class="entry" headers="d137042e108" data-title="Description">Indicates the admin-controlled minimum delay (in seconds) that
                applies to all enqueued jobs that were scheduled without a delay
                parameter. The minimum delay is one second and the maximum is 600
                seconds. The default behavior, when the setting is omitted, is no
                delay in scheduling enqueued jobs.</td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether aggregate (not detailed) totals are tracked for
                Apex test coverage data (<samp class="codeph nolang">true</samp>)
                or not (<samp class="codeph nolang">false</samp>). The default
                value is <samp class="codeph nolang">false</samp>. </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Deprecated.</td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether approval process lock and unlock operations
                from Apex code are allowed (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). The default value is <samp class="codeph nolang">false</samp>. </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether the Use <samp class="codeph apex_code">with
                  sharing</samp> for <samp class="codeph apex_code">@AuraEnabled</samp> Apex Controllers with Implicit Sharing
                critical update is activated (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). For more details, see the <a class="xref" href="http://releasenotes.docs.salesforce.com/en-us/winter20/release-notes/rn_lc_apex_with_sharing_cruc.htm" target="_blank" title="HTML (New Window)">Winter ’20 Release
                  Notes</a>.</td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether the Enforce Access Modifiers on Apex Properties
                in Lightning Component Markup critical update is activated (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). For more details, see the
                <a class="xref" href="http://releasenotes.docs.salesforce.com/en-us/winter20/release-notes/rn_lc_enforce_prop_modifiers_cruc.htm" target="_blank" title="HTML (New Window)">Winter ’20 Release
                  Notes</a>.
              </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether the <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/apex_limits_elastic_limits.htm" target="_blank">Use elastic limits for
                  asynchronous Apex jobs (Beta)</a> setting is enabled (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). The default value is
                <samp class="codeph nolang">false</samp>. Available in API
                version 67.0 and later.
              </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether the Restrict Access to <samp class="codeph apex_code">@AuraEnabled</samp> Apex Methods for
                Authenticated Users Based on User Profile critical update is
                activated (<samp class="codeph nolang">true</samp>) or not
                (<samp class="codeph nolang">false</samp>). For more details,
                see the <a class="xref" href="http://releasenotes.docs.salesforce.com/en-us/winter20/release-notes/rn_lc_restrict_apex_authenticated_users.htm" target="_blank" title="HTML (New Window)">Winter ’20 Release
                  Notes</a>.</td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether the Restrict Access to <samp class="codeph apex_code">@AuraEnabled</samp> Apex Methods for
                Guest and Portal Users Based on User Profile critical update is
                activated (<samp class="codeph nolang">true</samp>) or not
                (<samp class="codeph nolang">false</samp>). For more details,
                see the <a class="xref" href="http://releasenotes.docs.salesforce.com/en-us/winter20/release-notes/rn_lc_restrict_apex_guest_users.htm" target="_blank" title="HTML (New Window)">Winter ’20 Release
                  Notes</a>.</td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether the <a class="xref" href="https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_block_exec_anon_ru.htm&amp;release=264&amp;type=5&amp;language=en_US" target="_blank">Block Apex Anonymous Code
                  Execution from Managed Packages</a> release update is enabled
                (<samp class="codeph apex_code"><span class="keyword">true</span></samp>) or not (<samp class="codeph apex_code"><span class="keyword">false</span></samp>). The default value is
                <samp class="codeph apex_code"><span class="keyword">false</span></samp>. Available in API
                version 67.0 and later.
              </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether Apex code is automatically recompiled (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). When set to <samp class="codeph nolang">true</samp>, code is recompiled before
                completing a metadata deployment, change set deployment, package
                installation, or package upgrade. For production orgs and full
                sandboxes, the default value is <samp class="codeph nolang">true</samp>. For all other orgs, the default value is <samp class="codeph nolang">false</samp>. <div class="box message info" id="note_mby_z4g_4cc">
                  <a name="note_mby_z4g_4cc"><!-- --></a>
                  <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>This setting can’t be disabled in production orgs.
                          </p>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether Apex tests are serially executed (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). The default value is
                <samp class="codeph nolang">false</samp>. <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>Even when
                            parallel testing is enabled by setting this value to <samp class="codeph nolang">false</samp>, tests that are run
                            during deployments are always run serially.</p>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether debug logs are enabled during metadata
                deployment (<samp class="codeph nolang">true</samp>) or not
                (<samp class="codeph nolang">false</samp>), in conjunction
                with an active debug log trace flag. If this setting is <samp class="codeph nolang">true</samp> but the trace flag is not
                active, debug logs are not enabled during metadata deployment. The
                default value is <samp class="codeph nolang">false</samp>.
                <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>Enabling the debug log in the <samp class="codeph nolang">DebuggingHeader</samp> overrides this
                            setting.</p>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether a nonproduction org is restricted to the lower
                Summer ’26 Apex heap limits (<samp class="codeph apex_code"><span class="keyword">true</span></samp>) or not (<samp class="codeph apex_code"><span class="keyword">false</span></samp>). The default value is <samp class="codeph apex_code"><span class="keyword">false</span></samp>. This setting is available
                only in Winter ’27. In Spring ’27, the higher Apex heap limits are
                enforced globally regardless of the setting status. For more
                details, see <a class="xref" href="https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_heap_limit.htm&amp;release=264&amp;type=5&amp;language=en_US" target="_blank">Handle Larger Datasets with
                  Increased Apex Heap Limits</a>. Available in API version
                68.0.</td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether autonumbering gaps are prevented by Apex test
                executions not incrementing autonumber fields for non-test records
                (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). The default value is
                <samp class="codeph nolang">true</samp>.
              </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description"> Indicates whether the Disable Access to Non-global Apex
                Controller Methods in Managed Packages critical update is activated
                (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). For more details, see the
                <a class="xref" href="http://releasenotes.docs.salesforce.com/en-us/winter20/release-notes/rn_lc_apex_methods_packages_cruc.htm" target="_blank" title="HTML (New Window)">Winter ’20 Release
                  Notes</a>.
              </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether Apex classes can access metadata, public or
                protected, through classes in the <samp class="codeph nolang">Metadata</samp> namespace (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). The default value is <samp class="codeph nolang">false</samp>. </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether guest users are restricted from executing
                anonymous Apex. The restriction applies regardless of whether the
                <samp class="codeph nolang">Author Apex</samp> permission is
                set. The default value is <samp class="codeph nolang">true</samp>.
              </td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Not used. Critical update is automatically enforced. See <a class="xref" href="https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_publicConstructorsInMgdPackages.htm&amp;release=224&amp;language=en_US" target="_blank">Restrict Reflective Access to
                  Non-Global Constructors in Packages (Critical
                  Update)</a>.</td>

            </tr>

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

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

              <td class="entry" headers="d137042e108" data-title="Description">Indicates whether Apex test results are generated for @TestSetup
                methods (<samp class="codeph nolang">false</samp>) or not (<samp class="codeph nolang">true</samp>). Available in API version
                61.0 and later.</td>

            </tr>

          </tbody>

        </table>

## Declarative Metadata Sample Definition

The following is an example of ApexSettings components.

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

The following is an example package.xml manifest that references the previous definition.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>Apex</members\>
        <name\>Settings</name\>
    </types\>
    <version\>47.0</version\>
</Package\>

## 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).