Salesforce CPQ: Creating Price Rules - Scenario 1

  • Blog
  • Salesforce CPQ: Creating Price Rules - Scenario 1
blog image
31
Jan

Salesforce CPQ: Creating Price Rules - Scenario 1

Imagine your client wants their users to configure quotes in such a way that the quantity of the ProductX is automatically updated to exactly 2 times the quantity of ProductZ. In order to achieve this it is necessary to create a price rule.

Salesforce CPQ Create Price Rule Steps for Scenario 1

Step 1. First, create a Summary Variable to represent twice the quantity of ProductZ across all quote lines.

 

  1. A. Click the Summary Variables tab from the navigation bar.
  2. B. Click New.
    1.  ►For the Variable Name field, enter a meaningful name that would make sense for you and your colleagues, for example: Total quantity of ProductZ multiplied by 2
    2.  ►For the Target Object field, select Quote Line
    3.  ►For the Aggregate Function field, select Sum
    4.  ►For the Aggregate Field, select Quantity
    5.  ►For the Filter Field, select Product Code
    6.  ►For the Operator field, select equals
    7.  ►For the Filter Value field, enter ProductZ
    8.  ►For the Composite Operator field, select Multiply
    9.  ►For the Value Element, enter 2
  3. C. Click Save.

Salesforce CPQ New Summary Variable Information Details,Filter Information details and Composite Information Details

Step 2. Create a Price Rule that will specify that it will be evaluated on the Quote Line Editor and for calculation events.

  1. A. Click the Price Rules tab from the navigation bar.
  2. B. Click New.
    1.  ►For the Price Rule Name field, enter Set quantity of ProductX to twice the quantity of ProductZ
    2.  ►For the Evaluation Scope field, select Calculator
    3.  ►For the Evaluation Order field, enter 10
    4.  ►Check the Active checkbox
  3. C. Click Save.

Salesforce CPQ New Price Rule Filled Fields for Scenario 1

Step 3. Create a Price Condition that makes the rule evaluate only when the quote line product code is ProductX.

  1. A. Click New in the Price Condition related list and set the field values:
    1.  ►For the Object field, select Quote Line
    2.  ►For the Field, select Product Code
    3.  ►For the Operator field, select equals
    4.  ►For the Filter Type field, select Value
    5.  ►For the Filter Value, enter ProductX
  2. B. Click Save.

Salesforce CPQ Price Rule Information and Price Condition Option

Step 4. Create a Price Action that will set the quote line Quantity field to the value of the composite summary variable.

  1. A. Click New in the Price Actions related list and set the following field values:
    1.  ►For the Target Object field, select Quote Line
    2.  ►For the Target Field, enter SBQQ__Quantity__c 
    3. Note: Don't forget to first add the API Name SBQQ__Quantity__c to the values of the picklist field "Target Field" on the Price Action object.
    4.  ►For the Source Variable field, enter Total quantity of ProductZ multiplied by 2
  2. B. Click Save.

Step 5. Verify rule behaves as expected by adding ProductX and ProductZ to a quote.

  1. A. Click the necessary quote.
  2. B. Click Edit Lines.
  3. C. Click Add Products.
  4. D. Check ProductX and ProductZ.
  5. E. Click Select.
  6. F. Set the quantity of ProductZ to 3.
  7. G. Click Calculate.
    1.  (Note the quantity of ProductX is double the quantity of ProductZ.)

This is how you can make sure that the correct number of any product is sold depending on the quantity of other products.

PS: Please make sure that the Product Code field is populated for the products you are working with for this specific example because it's the Product Code field that is being referenced in this price rule, not the Product Name.

Keep reading: Salesforce CPQ: Creating Price Rules - Scenario 1

Comments (0)

Leave a Comment