Validation rules confirm that a quote’s product combinations or quote line field values
match predetermined conditions. Users see an error message and can’t save their product
configuration or quote until they meet these conditions. (Salesforce CPQ Managed Package)
Required Editions
Available in: All CPQ Editions
Use validation rules to ensure that your users create parts of their quote in a manner that
you can control. If the quote isn’t configured in this way, the quote line editor shows an
error message when the user tries to save. Set the text for this error message in the product
rule’s Message field. The message appears, and users can’t save the product configuration or
quote until the product rule’s error conditions evaluate to true.
Example You want your quotes to contain more or the same quantity of toner than printers. Your
product rule in this case tests whether the quantity of toner is greater than or equal to the
quantity of printers on your quote. Start by creating a summary variable for your toner
quantity and another summary variable for your printer quantity. Then create a product rule
with the following fields.
Product Rule Name: Toner Quantity Greater or Equal to Printer Quantity
Conditions Met: All
Scope: Product
Evaluation Event: Always
Type: Validation
Message: Toner quantity must be greater than or equal to printer quantity.
Next, create an error condition.
Tested Variable: Toner Quantity
Operator: Less Than
Filter Type: Variable
Filter Variable: Printer Quantity
Now, if a user adds more printers than toner in the quote line editor, they see the
message you set when they try to save.
Validation Rules in Nested Bundles Use validation rules within nested bundles to expand the scope of options Salesforce CPQ considers when evaluating quotes and products. (Salesforce CPQ Managed Package)
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
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
Always Active
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
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
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.