Loading

How to Prevent Salesforce from Creating an Opportunity When Converting a Lead

Дата публикации: Jun 3, 2026
Описание

When converting a Lead in Salesforce, the system automatically presents the option to create a new Opportunity as part of the conversion process. The Lead Conversion page layout and the conversion process itself are not customizable, which means you cannot simply remove the Opportunity creation step from the UI.
To prevent Opportunities from being created during Lead conversion, you can use one of two approaches: a validation rule with custom checkbox fields, or a built-in Lead Conversion Setting available in Salesforce Setup.
This article applies to both Salesforce Classic and Lightning Experience.

 

Решение

This article describes two methods to prevent Opportunity creation when converting a Lead.
Method 1: Use a Validation Rule with Checkbox Fields (Recommended for Automation)
This method uses a custom checkbox field on both the Lead and Opportunity objects, a field mapping between them, and a validation rule on Opportunity to block the creation.


Step 1: Create a Checkbox Field on Opportunity (Default: Unchecked)

  • Salesforce Classic: Setup > Customize > Opportunities > Fields
  • Lightning Experience: Gear Icon > Setup > Object Manager > Opportunity > Fields & Relationships
  1. Click New and choose Checkbox.
  2. Enter a name for the field (for example, "Created From Lead").
  3. Set the Default Value to Unchecked.
  4. Click Next, set visibility for applicable profiles, then click Save.

Step 2: Create a Checkbox Field on Leads (Default: Checked)

  • Salesforce Classic: Setup > Customize > Leads > Fields
  • Lightning Experience: Gear Icon > Setup > Object Manager > Lead > Fields & Relationships
  1. Click New and choose Checkbox.
  2. Enter a name for the field (for example, "Lead Conversion Block").
  3. Set the Default Value to Checked.
  4. Click Next, set visibility for applicable profiles, then click Save.

Step 3: Map the Lead Field to the Opportunity Field

  • Salesforce Classic: Setup > Customize > Leads > Fields > Map Lead Fields button
  • Lightning Experience: Gear Icon > Setup > Object Manager > Lead > Fields & Relationships > Map Lead Fields button
  1. Click the Opportunity tab in the field mapping screen.
  2. Map the Lead checkbox field you created to the Opportunity checkbox field you created.
  3. Click Save.

Step 4: Create a Validation Rule on Opportunity

  • Salesforce Classic: Setup > Customize > Opportunities > Validation Rules
  • Lightning Experience: Gear Icon > Setup > Object Manager > Opportunities > Validation Rules
  1. Click New and enter a Rule Name.
  2. In the Error Condition Formula, click Insert Field, select the checkbox field you created on Opportunity, and click Insert. Add = TRUE after the field reference.
  3. For the Error Message, enter: "Do not create an Opportunity from a Lead."
  4. Set your preferred Error Location and click Save.

Notes:

  • On Lead records that existed before the checkbox field was created, the field will be unchecked by default, meaning no validation rule block will trigger for those existing Leads.
  • The checkbox fields do not need to be placed on the Page Layout to function.

Method 2: Use the Lead Conversion Setting (Simpler Approach)
This method pre-selects the "Don't create an opportunity" option in the Convert Lead window without requiring custom fields or a validation rule.

 

  • Salesforce Classic: Setup > Customize > Leads > Lead Settings > Lead Conversion Settings > Check "Select 'Don't create an opportunity' by Default in Convert Lead Window"
  • Lightning Experience: Gear Icon > Setup > Feature Settings > Marketing > Lead Settings > Lead Conversion Settings > Check "Select 'Don't create an opportunity' by Default in Convert Lead Window"
Номер статьи базы знаний

000387799

 
Загрузка
Salesforce Help | Article