New Year Sale 2026! 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

Actual exam question for Salesforce's Rev-Con-201 exam
Question #: 9
Topic #: 2
[All Rev-Con-201 Questions]

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?

Show Suggested Answer Hide Answer
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

Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel