ProductRecommendationRule Class

Represents a product recommendation rule that is evaluated during product configuration. Product recommendation rules suggest additional products to users based on configuration conditions.

runtime_industries_cpq

Learn more about the constructor that’s available with the ProductRecommendationRule class.

The ProductRecommendationRule class includes this constructor.

Constructor to create a ProductRecommendationRule instance with the specified recommendation details.

public ProductRecommendationRule(String referenceId, List<String> productIds, String message, String recordType, String target, String scope)

referenceId

Type: String

The reference ID of the product recommendation rule.

productIds

Type: List<String>

List of product IDs that are recommended.

message

Type: String

The message to display with the product recommendation.

recordType

Type: String

The record type associated with the recommendation.

target

Type: String

The target of the recommendation rule.

scope

Type: String

The scope of the recommendation rule.

Contains properties to store product recommendation rule details from configuration rule evaluation.

The ProductRecommendationRule class includes these properties.

Get the message value.

public String message {get; set;}

Type: String

Get the list of productid.

public List<String> productIds {get; set;}

Type: List<String>

Get the recordtype value.

public String recordType {get; set;}

Type: String

Get the ID of the reference.

public String referenceId {get; set;}

Type: String

Get the scope value.

public String scope {get; set;}

Type: String

Get the target value.

public String target {get; set;}

Type: String