Price Rules

by Community Manager on ‎08-06-2015 10:57 AM - edited on ‎04-12-2017 02:28 PM by Community Manager

OVERVIEW

Price rules automate price calculations and update quote line fields - For instance, you can set price rules to automatically discount quote line items based on product or quote attributes.  Customize price rules using Price Conditions and Price Actions:

  • Price Conditions: Use filters, variables and formulas to specify the conditions under which the Price Rule's automation will take effect. You can set as many conditions as you like and specify how the conditions should be met to trigger the resulting action (i.e., all conditions, one condition, or a certain logically-determined combination of conditions.)
  • Price Actions: The actual action, most commonly a discount, applied to quote line items once the Price Rule has met its Price Conditions. 

A Price Rule can have as many conditions or actions as needed, but must have at least one of each.

 

PROCEDURES

Price Rule Creation

  1. Navigate to the Price Rules tab and click New.
  2. Enter a meaningful Name for the rule.new price rule.png
  1. Choose the Evaluation Scope of your query in your price condition.
    • Configurator: The rule will be evaluated while configuring the product.
    • Calculator: The rule will be evaluated on the quote.
  2. Choose an option for Condition Met
    • All: Choose to trigger the action only when all conditions are met.
    • Any: Choose to trigger the action when a single condition is met.
    • Custom:  Use with the Advanced Conditions field to define how the conditions should apply.  For example, this enables a rule with 3 conditions to be handled in the following fashion: 1 AND (2 OR 3). 
  3. Calculator Evaluation Event: This field allows you to specify when this price rule should be evaluated. This is not available on Legacy Calculator and should only be used when the Price Rule is targeting the Quote Line. You may select any combination of the following picklist values:
    • On Initialization: Price rule will be evaluated when the quote line editor loads
    • Before Calculate: Price rule will be evaluated before the price is calculated
    • On Calculate: Price rule will be evaluated as the price is being calculated
    • After Calculate: Price rule will be evaluated after the price is calculated
  4. Configurator Evaluation Event: This field determines when price rules fire following changes within the configurator. Note: Price Rules in the Legacy Calculator will only fire when the value for this field is set to None or Save; they will not fire when the value is set to Edit
    • None or Save: Configurator-scoped price rules will fire after Save is selected within the Configurator.
    • Edit: Configurator-scoped price rules will fire immediately after edits to quantity have been made within the Configurator, as well as after Save is selected.
  5. Select Active to activate the rule for users.
  6. Optional: Click the Product Lookup Field to associate your Price Rule with a Product. This is specifically for Price Rules targeting Product Options, allowing for restrictions of particular Products within a Bundle.
  7. Click Save.

Caution: Salesforce CPQ best practices recommend injecting into list prices only with list-priced products. You cannot inject block-priced products into list prices unless your Price Rule fires After Calculate, in which case the injected value is not used in the Price Rule calculation.

 

 

Price Condition Creation

  1. Navigate to a Price Rule.
  2. Click New Price Condition from the Price Conditions related list.PRICE RULES 3.png
  1. Index: Allows the user to assign a unique number to this Condition if they wish to reference it within a Price Rule's Advanced Condition. Advanced Conditions allow user to establish conditional logic under which a Price Rule will fire - I.e., IF (1 AND 2) OR 3.
  2. Object: Choose the object against which the rule is evaluated, such as Quote Line or Summary Variable. Admins may need to manually add values to this picklist in the Price Condition's Page Layout.
  3. Field: Choose the field that should contain the value you enter in the subsequent Value field. Admins may need to manually add fields to this picklist in the Price Condition's Page Layout.
  4. Price Rule: This should already contain the Price Rule associated with this new Condition.
  5. Operator: Choose the logical operator you want to apply when comparing the Field to the Value.
  6. Tested Variable: Enter or lookup the Summary Variable if you created one, to compare against the Value field.
  7. Tested Formula: Enter a formula with operators, functions and available fields on quote and target object. You can construct a formula using many of Salesforce's available operators and functions. You can also add in information from the quote or the target object field (i.e., SBQQ__QuoteLine__c.SBQQ__ListPrice__c). Add Caution.
  8. Filter Type: Choose one of the following:
    1. Value: Evaluate this rule against a specific value
    2. Variable: Evaluate this rule against another Summary Variable
    3. Formula: Evaluate this rule against the result of a Filter Formula
  9. Filter Variable: Enter or lookup the Summary Variable to evaluate against in the Tested Variable field
  10. Filter Value: Enter the value you want to match in the field you selected using the Operator chosen.
  11. Filter FormulaEnter a formula with operators, functions, and available fields on quote and target object. You can construct a formula using many of Salesforce's available operators and functions. You can also add in information from the quote or the target object field (i.e., SBQQ__QuoteLine__c.SBQQ__ListPrice__c). 

Caution: The Tested Formula and Filter Formula fields can only be used with the Advanced Quote Calculator.

Tip: To build price rules that apply different prices to subscriptions based on different terms, use the Subscription Term field on the Quote Line object. Add its API name to the Field as a picklist value.

 

Price Action Creation

  1. Navigate to a Price Rule.
  2. Click New Price Action from the Price Actions related list.Price Action.png
  3. Target Object: Select the object on which the field is defined. Admins may need to manually add values to this picklist in the Price Condition's Page Layout.
  4. Target Field: Select the field you want updated when the related Price Conditions are met. Admins may need to manually add values to this picklist in the Price Condition's Page Layout.
  5. Value: Enter the value you want inserted into the target field.
  6. Rule: This should already contain the Price Rule associated with this Action.
  7. Source FieldEnter a source field if the value you want inserted is calculated in another Quote Line field.
  8. Source VariableEnter the Summary Variable that sources value for this action.
  9. FormulaEnter a formula with operators, functions, and available fields on quote and target object. You can construct a formula using many of Salesforce's available operators and functions. You can also add in information from the quote or the target object field (i.e., SBQQ__QuoteLine__c.SBQQ__ListPrice__c). 
  10. Click Save

Caution: Salesforce CPQ Best Practices do not support Price Action Formulas that reference Prorate Multiplier when the action targets the Product field SBQQ__ListPrice__c.

Caution: When two Price Rules share the same evaluation event, the earliest-firing Price Action's target field value will not be usable in the Price Condition of the later-firing Price Rule. For a given evaluation event, all conditions are evaluated at once. After this, for rules whose conditions have been met, actions then fire sequentially. An action from one rule in a given evaluation event cannot influence the conditions of another rule in the same evaluation event.