Organizations that have purchased the Salesforce Products (Price Books and Products) module can configure Opportunities to prompt users to add Products when saving. This article explains how to enable the Prompt Users to Add Products setting in Opportunity Settings and describes known scenarios where Opportunities may still be saved without Products despite this setting being enabled. It also provides sample Validation Rule formulas to more strictly enforce Product entry.
To make Products required on Opportunities, log in as a system administrator and follow the instructions below:
In Salesforce Classic: Setup | Customize | Opportunities | Opportunity Settings
In Lightning Experience: Setup | Feature Settings | Sales | Opportunities | Opportunity Settings
In certain situations, this setting can be overridden by user behavior, which may result in Opportunities without related Products. This is expected and can happen in any of the following situations:
In Salesforce Classic: Setup | Customize | Opportunities | Validation Rules
In Lightning Experience: Setup | Object Manager | Opportunity | Validation Rules
Sample formula to use for multiple Stages:
The following formula prevents saving an Opportunity without Products if the Stage is set to Needs Analysis, Qualified, or Proposal Submitted. Update the stage names to match your org's configured Opportunity stages.
AND(
OR(
ISPICKVAL(StageName,"Needs Analysis"),
ISPICKVAL(StageName,"Qualified"),
ISPICKVAL(StageName,"Proposal Submitted")),
HasOpportunityLineItem = FALSE
)
Sample formula to use when only a certain Stage is reached:
The following formula prevents saving an Opportunity without Products only when the Stage is set to Needs Analysis.
AND(
ISPICKVAL(StageName,"Needs Analysis"),
HasOpportunityLineItem = FALSE
)
Note: This validation rule only works if an Opportunity has a Price Book added.
000384448

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.