---
schema_version: "1"
id: 2c60acee800838498a36c87267762cc887eed4935b368382ae249d11dcbf9b4a
title: LeadConfigSettings
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_leadconfigsettings.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_leadconfigsettings.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ed7cf6381502eb2dc007fbeae014489185d7f33fd758e829e00c127547fde8cf
description: Represents configuration settings for Leads that control how they are converted and displayed, and what actions are available. This type extends the Metadata metadata type and inherits its fullName field.
---
# LeadConfigSettings

Represents configuration settings for Leads that control how they are converted and displayed, and what actions are available. 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

LeadConfigSettings values are stored in the LeadConfig.settings file in the settings folder. The .settings files are different from other named components because there’s only one settings file for each settings component.

## Version

LeadConfigSettings is available in API versions 47.0 and later.

## Fields

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



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

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

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

            </tr>

          </thead>

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

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

              <td class="entry" headers="d618509e106" data-title="Description">Configures whether tasks without a subject are created during
                lead conversion. If <samp class="codeph nolang">true</samp>, tasks
                are created when the default subject field has no value. If <samp class="codeph nolang">false</samp>, only tasks with a subject
                are created.</td>

            </tr>

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

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

              <td class="entry" headers="d618509e106" data-title="Description">Hides the opportunity section of the Convert Lead window during
                lead conversion. <p class="p">Default value is <samp class="codeph nolang">false</samp>.</p>
              </td>

            </tr>

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

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

              <td class="entry" headers="d618509e106" data-title="Description">If your org uses record types, the lead status changes to the
                lead status value of the new owner's record type during conversion.
                Set <span class="keyword parmname">doesPreserveLeadStatus</span> to <samp class="codeph nolang">true</samp> to preserve the value of the
                lead status during conversion.<p class="p">Orgs that use record types can
                  create a lead process that allows different lead status values
                  for different record types. If
                  <span class="keyword parmname">doesPreserveLeadStatus</span> is <samp class="codeph nolang">false</samp>, the lead status might
                  change during lead conversion if the new owner's record type has
                  a different default value for lead status.
                </p>
                <p class="p">Default value
                  is <samp class="codeph nolang">true</samp>.</p>
              </td>

            </tr>

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

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

              <td class="entry" headers="d618509e106" data-title="Description">Prevents an opportunity from being created when the lead is
                converted.<p class="p">Default value is <samp class="codeph nolang">false</samp>.</p>
              </td>

            </tr>

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

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

              <td class="entry" headers="d618509e106" data-title="Description">Enables field history tracking for leads. When field history
                tracking is enabled, users can choose the fields they want to track.
                <p class="p">Default value is <samp class="codeph nolang">false</samp>.</p>
              </td>

            </tr>

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

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

              <td class="entry" headers="d618509e106" data-title="Description">Lets a user convert leads on their mobile devices. The Convert
                Lead action converts qualified leads to contacts. <p class="p">Default value
                  is <samp class="codeph nolang">true</samp>.</p>
              </td>

            </tr>

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

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

              <td class="entry" headers="d618509e106" data-title="Description">Lets a user merge and delete leads. The user must also have the
                Public Read/Write/Transfer permission.<p class="p">Default value is <samp class="codeph nolang">false</samp>.</p>
              </td>

            </tr>

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

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

              <td class="entry" headers="d618509e106" data-title="Description">Associates the lead's emails with the contact that it's converted
                to.<p class="p">Default value is <samp class="codeph nolang">false</samp>.</p>
              </td>

            </tr>

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

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

              <td class="entry" headers="d618509e106" data-title="Description">Enforces validation rules when converting leads. <p class="p">Default value
                  is <samp class="codeph nolang">true</samp>.</p>
              </td>

            </tr>

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

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

              <td class="entry" headers="d618509e106" data-title="Description">Indicates whether an email notification is sent when the lead
                owner is updated through Apex in Lightning Experience.<p class="p">Default
                  value is <samp class="codeph nolang">false</samp>.</p>
              </td>

            </tr>

          </tbody>

        </table>

## Declarative Metadata Sample Definition

The following is an example of the LeadConfigSettings type:

<?xml version="1.0" encoding="UTF-8"?>
<LeadConfigSettings xmlns="http://soap.sforce.com/2006/04/metadata">
<doesEnableLeadConvertDefaultSubjectBlankTaskCreation\>false</doesEnableLeadConvertDefaultSubjectBlankTaskCreation\>
<doesHideOpportunityInConvertLeadWindow\>false</doesHideOpportunityInConvertLeadWindow\>
<doesPreserveLeadStatus\>true</doesPreserveLeadStatus\>
<doesSelectNoOpportunityOnConvertLead\>false</doesSelectNoOpportunityOnConvertLead\>
<doesTrackHistory\>false</doesTrackHistory\>
<enableConversionsOnMobile\>true</enableConversionsOnMobile\>
<enableOrgWideMergeAndDelete\>false</enableOrgWideMergeAndDelete\>
<shouldLeadConvertRequireValidation\>true</shouldLeadConvertRequireValidation\>
<shouldSendNotificationEmailWhenLeadOwnerUpdatesViaApexInLEX\>false</shouldSendNotificationEmailWhenLeadOwnerUpdatesViaApexInLEX\>
</LeadConfigSettings\>

## Example Package Manifest

The following is an example package manifest used to deploy or retrieve the LeadConfig settings metadata for an organization:

<?xml version="1.0" encoding="UTF-8"?>
<!--

<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>LeadConfig</members\>
        <name\>Settings</name\>
    </types\>
    <version\>61.0</version\>
</Package\>