We have many complex price rules created. Now when we Calculate a quote, some of these price rules are applied, if their conditions are met. Many rules may apply on a single quote line. For developers and key-users, it is not visible at a glance, which rules has been applied.
Sometimes calculated prices are not plausible. This might be because of wrong settings in the rule itself - or because some conditions are wrong and some rules get wrongly applied or some rules should be applied but are not triggered by the implemented conditions.
Using the UI it is very hard to find mistakes or to debug test cases easily.
For debugging reasons we would like to get a list of all applied price rules per Quote Line, so that we as developers as well as the key-users can understand, which price rule has been applied in which order.
Is there an easy way to get such an list of applied rules?
What have we done so far?
- We've looked into the docs here https://help.salesforce.com/articleView?id=cpq_price_rules_intro.htm&type=5
- We've conducted a web-search with google
None of the above brought up some helpful information.
If no such list is existing, any conceptual idea on how or where we could inject some logic to create such a list or log would help, too. E.g. a trigger or extension or whatever we could write to fill in an entry when the rule gets applied (that is when the rule fires)