Which three ways can a developer filter the list of products when using the
getCartsproducts method?
Choose 3 answers
Using a value that is contrained witing a product attribute
A. Using a value that is contained within a Product2 field
B. Using a value that will be matched exactly to a value in a Products field
C. Using a context rule that qualifies a set of products
D. Using a product category
A. Using a value that is contained within a Product2 field B. Using a value that will be matched exactly to a value in a Products field C. Using a context rule that qualifies a set of products
Explanation:
The getCartsProducts method in Vlocity (Salesforce Industries) CPQ allows developers to filter products in the following ways:
A. Using a value within a Product2 field
Filters products based on standard or custom fields in the Product2 object (e.g., Family = "Hardware").
B. Using an exact match to a Product field value
Applies strict matching (e.g., ProductCode = "PHN-001").
C. Using a Context Rule
Leverages Vlocity Context Rules to dynamically qualify products (e.g., "Show only products eligible for Premium Customers").
Why Option D is Incorrect?
D. Using a product category → While categories organize products, they are not a direct filter parameter for getCartsProducts.