Hello! Here is a simple step by step of how to create a Lookup Price Rule!
- Create the Custom Object and its Fields.
- The best way to do this is to make a CSV with your columns and some sample values. Then use the Lightning Object Creator with your file to make the object.
- Price Rule Object
- Add New Custom Object API Name to Lookup Object field.
- Lookup Query Object
- Add API names of Quote Line fields to the “Tested Field” field.
- Add API names of Lookup Object fields (fields you want to compare) to the “Lookup Field” field.
- Price Action Object
- Add API names of Quote Line fields (fields you want to pull values into from Lookup Object fields) to the “Target Field” field.
- Make sure to update the dependency on the “Target Field” field to enable the new values you entered for the Quote Line object.
- Add API names of Lookup Object fields (fields you want to pull values from into Quote Line fields) to the “Source Lookup Field” field.
- Create Lookup Price Rule
- Set Lookup Object field to API name of your Lookup Object.
- Set Calculator Evaluation Event to “After Calculate”.
- Create Lookup Query(s)
- There should be 1 Lookup Query per field comparison.
- Set Match Type to “Field Value”.
- Set Tested Field field to API name of the Quote Line field to compare.
- Set Lookup Field field to API name of the Lookup Object field to compare.
- Set Operator field to how you would like to compare the above two fields.
- Create Price Action(s)
- Set Target Field field to API name of the Quote Line field to inject the value into.
- Set Source Lookup Field to the API name of the Lookup Object field to pull the value from.
Hi Dennis,
We have a requirement to integrate SAP and Salesforce for contracts and billing, could you please help with any helpful article for the same?
Thanks,
Rosario
Hi Dennis,
I don’t know if I’m over complicating this or if it just can’t be done but I’m looking to update a quantity on a specific product option only but the way I have it configured, the quantity of the entire bundle (parent product and all the the children products) are getting updated.
Price Rule:
Evaluation Scope = Quote Line
Conditions Met = All
Active = True
Calculator Evaluation Event = On Calculate
Price Action:
Target Object = Product Option
Target Field = SBQQ__Quantity__c
Formula: 135,000
How do I seclude the update quantity of 135,000 to only apply to that one specific product option? I appreciate any guidance on this!
Target Object should be “Quote Line”. You should have a Price Condition that specifies the product you’re aiming for and also a Price Condition that specifies SBQQ__RequiredBy__r.SBQQ__Number__c is not blank (it’s a bundle child).