A Revenue Cloud Consultant is writing a constraint rule in Constraint Modeling Language (CML) to prevent customers from selecting a red laptop case if the selected laptop model is Executive Pro. The consultant anticipates that this color restriction might apply to other products in the future and wants to make the rule easier to maintain and reusable across multiple rules.
Which approach should the consultant take?
Exact Extracts from Salesforce CPQ Advanced Configurator (Constraint Modeling Language Guide):
''Global constants enable administrators to define reusable values that can be referenced across multiple CML rules.''
''Using global constants ensures consistent logic and simplifies maintenance when constraints need to be updated.''
''Avoid hard-coded literals or repetitive local variables in multiple rules, as this increases maintenance complexity.''
Step-by-Step Reasoning:
Requirement: Create a reusable restriction for color ''red'' across several product rules.
Best Practice: Define global constant, e.g., const BlockedColor = 'Red'.
Why C is Correct:
Global constants promote reusability and reduce redundancy.
Changing one constant updates all dependent rules automatically.
Why Others Are Incorrect:
A: Local variables are limited to each rule; no reuse.
B: Hardcoding values breaks scalability and maintainability.
Salesforce CPQ Advanced Configurator Developer Guide --- Constraint Modeling Language (CML) and Global Constants
Salesforce CPQ Implementation Guide --- Best Practices for Constraint Rules and Reusability
Arminda
5 days agoWava
10 days agoSharee
15 days agoGretchen
20 days agoRosita
25 days agoAide
1 month agoAltha
1 month agoKarrie
2 months agoMoon
2 months agoBettina
2 months agoEileen
2 months agoStephane
3 months agoBrett
3 months agoAlaine
3 months agoKarol
3 months agoMollie
3 months agoDianne
3 months agoCordelia
4 months agoElvera
4 months agoYolande
4 months agoKatina
4 months agoPaz
4 months agoMalinda
5 months agoLisbeth
5 months agoLeonie
5 months agoScarlet
5 months ago