Salesforce CPQ: Creating Partner Discounts By Product Family

  • Blog
  • Salesforce CPQ: Creating Partner Discounts By Product Family
blog image
28
Feb

Salesforce CPQ: Creating Partner Discounts By Product Family

A common use case is to give your partners different discounts based on the account Partner level and based on the quote line Product Family. This can be achieved by querying the Partner Level Discount custom Lookup Object and by retrieving data stored in the table.

CPQ Lookup Table Products and their Fields

 This is one of the most powerful and impressive capabilities of Price Rules. Let's dive in and set up this price rule.

Salesforce CPQ Create Price Rule Steps

Step 1. 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 Partner Discount based on Lookup Query
    2.  ►For the Evaluation Scope field, select Calculator
    3.  ►For the Evaluation Order field, enter 40
    4.  ►Check the Active checkbox
    5.  ►For the Lookup Object field, select Partner_Level_Discount__c
    6. (Note: first add the API name of the necessary Lookup Object to the values list of the Lookup Object field on the Price Rule Object in Setup>Object Manager> Fields & Relationships)
  3. C. Click Save.

 

Salesforce CPQ New Price Rule Information Options 

Step 2. Create a Price Condition that makes the rule evaluate only when the custom Partner Level field has a value.

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

Salesforce CPQ New Price Condition Fields and Picklists 

Step 3. Create a Lookup Query whose purpose is to match the Partner Level formula field from the quote with the corresponding Partner Level field on the records in the Partner Level Discount custom object.

  1. A. Click New in the Lookup Queries related list and set the following field values:
    1.  ►For the Match Type field, select Field Value
    2.  ►For the Tested Object, select Quote
    3.  ►For the Tested Field, enter Partner_Level__c
    4. (Note: don't forget to add the API name of the tested field that is evaluated by the query to the values list of the Tested Field field on the Lookup Query Object in Setup>Object Manager> Fields & Relationships. The same is true for the Lookup Field below, which is the field used in the query)
    5.  ►For the Operator field, select equals
    6.  ►For the Lookup Field, enter Partner_Level__c
  2. B. Click Save & New.

CPQ Lookup Query Fields And Picklists

Step 4. Create a Lookup Query whose purpose is to match the Product Family field from the quote line with the corresponding Product Family field on the records in the Partner Level Discount custom object.

  1. A. Click New in the Lookup Queries related list and set the following field values:
    1.  ►For the Match Type field, select Field Value
    2.  ►For the Tested Object, select Quote Line
    3.  ►For the Tested Field, enter SBQQ__ProductFamily__c
    4.  ►For the Operator field, select equals
    5.  ►For the Lookup Field, enter Product_Family__c
  2. B. Click Save.

CPQ Lookup Query Fields And Picklists

Note: Make sure you define the lookup table in such a way that the lookup queries can be narrowed down to at most one record. If there is no match - nothing happens, but if there are duplicates, then the price rule will throw an error.

Step 5. Create a Price Action that will set the quote line Partner Discount field based on the returned result of the two lookup queries.

  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__PartnerDiscount__c
    3.  ►For the Source Lookup field, enter Partner_Discount__c (This is the field on the Lookup Object which contains the value that we want to inject in the Quote Line)
  2. B. Click Save.

CPQ Price Action Fields And Picklists

This is another example of how you can use price rules in order to make sure that your partners receive discounts based on their Partner Level, this time by Product Family.

CPQ Quote Line Editor Fields,Prices and Discounts

Comments (0)

Leave a Comment