Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Rev-Con-201 Exam - Topic 2 Question 9 Discussion

Posted by Isabelle on Mar 07, 2026 at 09:30 AM

A product administrator needs to add a required rule using Constraint Modeling Language (CML) so that whenever a product called Desktop is added to a quote, another standalone product called Monitor will be automatically added.

What is the correct CML syntax to write this rule?

Suggested Answer: B

(150--250 words)

Constraint Modeling Language (CML) defines logical relationships between quote line items, allowing administrators to automate dependency and compatibility logic in Salesforce CPQ.

The keyword require() explicitly establishes a dependency that ensures one product must exist when another is present in a quote.

The correct syntax must define relationships with multiplicity ranges (e.g., [0..99]) and use the require() function, not constraint(), to specify the rule. Option B meets these criteria:

type Quote {

relation desktop : Desktop[0..99];

relation monitor : Monitor[0..99];

require(desktop[Desktop], monitor[Monitor], 'Desktop requires Monitor');

}

This ensures that when ''Desktop'' is added, ''Monitor'' is automatically included. The other options are incorrect because:

Option A uses the wrong function (constraint() instead of require()), which defines logical conditions but doesn't enforce automatic inclusion.

Option C omits multiplicity, which is required for valid relationship definition.

Exact Extract from Salesforce CPQ Implementation Guide:

''The require() statement in CML defines a dependency rule so that when one product is selected, the dependent product is automatically added to the quote.''


Salesforce CPQ Implementation Guide --- Constraint Rules and CML Syntax

Salesforce Revenue Cloud Developer Guide --- Defining Product Relationships in CML

Get Premium Rev-Con-201 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
35 comments · newest first
RA
Ranee 2 days ago
I agree with Rodolfo. Option A has the right structure for constraints.
AM
Amira 8 days ago
Option C looks too simplified. It might not enforce the requirement properly.
LO
Lovetta 13 days ago
I prefer option B. The require function seems more straightforward for this rule.
RO
Rodolfo 18 days ago
I think option A is the best. It clearly defines the relations and the constraint.
SH
Sheridan 23 days ago
I agree with Becky. A has the right structure for constraints.
LE
Lera 28 days ago
Option C looks too simple. I doubt it covers all cases.
PA
Pamella 1 month ago
I prefer option B. The require function seems more appropriate here.
BE
Becky 1 month ago
I think option A is correct. It clearly defines the relations.
JO
Johnetta 1 month ago
I agree with Elliott. A is clear and concise for the requirement.
RI
Ricki 2 months ago
Option C is too vague. It doesn't specify the quantity.
CE
Cecily 2 months ago
I prefer option B. The require function seems more appropriate here.
EL
Elliott 2 months ago
I think option A looks correct. It has the right structure.
HY
Hyman 2 months ago
Not sure about B, it feels off to me.
CA
Cary 2 months ago
I agree with A, it just makes sense!
DA
Darci 2 months ago
Wait, is C even a valid option?
TU
Tuyet 3 months ago
A looks good, but B seems more straightforward.
HU
Huey 3 months ago
I think option A is the right syntax.
PH
Phillip 3 months ago
I thought CML was more complex than this!
KI
Kimbery 3 months ago
Wait, why is Monitor not required in option C?
SO
Solange 3 months ago
Not so sure about A, seems a bit off.
AR
Arlette 4 months ago
Definitely agree, A looks solid!
HU
Hubert 4 months ago
I think option A is the right syntax.
MO
Mozelle 4 months ago
I agree with A, but B has a good point too!
IZ
Izetta 5 months ago
Wait, are we sure about that?
FR
Fredric 6 months ago
C seems off, doesn't use the right syntax.
DO
Dorothy 6 months ago
I think B is the right choice.
NI
Nieves 6 months ago
Option A looks correct to me.
ST
Stephaine 6 months ago
I’m leaning towards option B because it seems to clearly state the requirement, but I’m not entirely sure if the syntax is correct.
JE
Jestine 6 months ago
I feel like option A looks familiar, but I’m not confident about the range notation. Did we use [0..99] for required products?
MA
Matt 6 months ago
I remember practicing a similar question where we had to define relations, but I can't recall if we used "constraint" or "require" for dependencies.
LO
Lorrie 7 months ago
I think the syntax needs to specify the relations correctly, but I'm not sure if "require" is the right keyword to use here.
NO
Noel 7 months ago
I thought the relations needed to be defined with specific ranges, so maybe A is the right choice after all?
AL
Alex 7 months ago
Option A looks wrong to me because it uses "constraint" instead of "require." I feel like B is the most accurate.
FI
Filiberto 7 months ago
I remember practicing a similar question where we had to set up relations, but I can't recall the exact syntax for constraints.
JU
Julie 7 months ago
I think the syntax should include the "require" function, but I'm not sure if it's option B or C.
0/2000 characters

Save Cancel