CPQ API OptionModel

The Option model represents a product option data model in Salesforce CPQ.

Required Editions
Available in: Salesforce CPQ Summer ’16 and later
NameTypeDescription
recordSBQQ__ProductOption__cThe record that this model represents.
externalConfigurationDataMap<String,String>Internal property for the external configurator feature.
configurableBooleanIndicates whether the option is configurable.
configurationRequiredBooleanIndicates whether the configuration of the option is required.
quantityEditableBooleanIndicates whether the quantity is editable. Editability is determined by the quantity and bundled fields on the option record.
priceEditableBooleanIndicates whether the price is editable. Editability is determined by the price editable field on the product record and the bundled field on the option record.
productQuantityScaleDecimalReturns the value of the quantity scale field for the product being configured.
priorOptionExistsBooleanChecks if this option is an asset on the account that the quote is associated with.
dependentIdsSet<Id>The option IDs that depend on this option.
controllingGroupsMap<String,Set<Id>>The option IDs that this option depends on.
exclusionGroupsMap<String,Set<Id>>The option IDs that this option is exclusive with.
reconfigureDimensionWarningStringReconfigures the warning label for an option with segments.
hasDimensionBooleanIndicates whether this option has dimensions or segments.
isUpgradeBooleanIndicates whether the product option is related to an upgrade product.
dynamicOptionKeyStringInternal property for dynamic options.
1public class OptionModel { 
2    public SBQQ__ProductOption__c record; 
3    public Map<String,String> externalConfigurationData; 
4    public Boolean configurable; 
5    public Boolean configurationRequired; 
6    public Boolean quantityEditable; 
7    public Boolean priceEditable; 
8    public Decimal productQuantityScale; 
9    public Boolean priorOptionExists; 
10    public Set<Id> dependentIds; 
11    public Map<String,Set<Id>> controllingGroups; 
12    public Map<String,Set<Id>> exclusionGroups; 
13    public String reconfigureDimensionWarning; 
14    public Boolean hasDimension; 
15    public Boolean isUpgrade; 
16    public String dynamicOptionKey; 
17}