How can Opportunity Products be prevented from being edited or modified using Validation Rules once the Opportunity Stage is marked as Closed?
This article explains how to lock Opportunity Products in Salesforce so users cannot create, edit, or delete them after the Opportunity Stage is set to Closed Won or Closed Lost. This solution involves creating a Roll-Up Summary Field and two Validation Rules (one on Opportunity and one on Opportunity Product).
A Sales Manager wants to block any changes to Opportunity Line Items for all Closed Opportunities. By adding one Roll-Up Summary Field and two Validation Rules, the Sales Manager can enforce this business policy.
Create a Validation Rule on Opportunity Product with the following settings.
Create a Validation Rule on Opportunity with the following settings. This solution assumes that you have a custom Roll-Up Summary Field on the Opportunity object called Number of Line Items, which counts the number of Opportunity Product records associated with an Opportunity.
000385411

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.