The correct sequence of evaluation events for a price rule, quote calculator plugin (QCP), and CPQ package pricing engine is as follows:
Internal Initialization: This is the first step where the system prepares for the calculation process.
On Initialization: At this stage, any price rules that are set to trigger ‘On Initialization’ are run.
Calculate Formulas: The system evaluates formula fields.
Before Calculate: Any price rules that are set to trigger ‘Before Calculate’ are run.
Calculate Quantities: The system calculates quantities, for example, bundle components.
On Calculate: Any price rules that are set to trigger ‘On Calculate’ are run.
Price Waterfall Calculation: The system calculates out-of-the-box pricing tools such as block pricing, discount schedules, etc.
After Calculate: Any price rules that are set to trigger ‘After Calculate’ are run1.
This sequence ensures that all calculations and price rules are applied in the correct order, providing accurate pricing information1. References:
https://help.salesforce.com/s/articleView?id=sf.cpq_price_rule_considerations.htm &language=en_US&type=5
https://help.salesforce.com/s/articleView?id=000388745 &language=en_US&type=1
Submit