Comparing Products
This is used to retrieve products, based on product IDs, and compare them side by side. This is typically done from the Product Catalog, to decide between products before adding them to the cart.
Prerequisite: You must set up feature sets and associate them with the products you want to compare. There is no API for this process—you must configure this in your org. For more information, see Configuring Product Comparison.
API |
Signature |
---|---|
compareProducts |
webService static List compareProducts(Apttus_CPQApi.CPQ.FeatureInfoRequestDO request) |
Parameters |
||
---|---|---|
Name |
Type |
Description |
request | Apttus_CPQApi.CPQ.FeatureInfoRequestDO |
The request data object. |
Request Data Object - Apttus_CPQApi.CPQ.FeatureInfoRequestDO |
||
---|---|---|
Field |
Type |
Description |
productIds | List<ID> |
The list of Ids of the product you want to compare. |
Response Data Object - Apttus_CPQApi.CPQ.FeatureInfoResponseDO |
||
---|---|---|
Field |
Type |
Description |
FeatureInfos | List<Apttus_CPQApi.FeatureSupport.FeatureInfo> |
This returns the list of features for each of the products included in the comparison. |
ProductId | ID |
ID of the products, which have a feature set to be compared. |
Data Object - Apttus_CPQApi.FeatureSupport.FeatureInfo |
||
---|---|---|
Field |
Type |
Description |
ProductFeatureSet | FeatureSet |
Associated Product Feature Set |
ProductFeatureSOId | Id |
Id of associated ProductFeature__c Salesforce Object |
Data Object - Apttus_CPQApi. FeatureSupport.FeatureSet |
||
---|---|---|
Field |
Type |
Description |
Description | String |
Description of associated product feature set |
Features | List<Apttus_CPQApi.
FeatureSupport.ProductFeatureValue> |
List of associated feature values |
FeatureSetSOId | Id |
Id of associated Apttus_Config2__FeatureSet__cSalesforce Object |
Name | String |
Name of the associated Product Feature Set |
Sequence | Decimal |
Order of the feature set |
Data Object - Apttus_CPQApi.FeatureSupport.ProductFeatureValue |
||
---|---|---|
Field |
Type |
Description |
FeatureSOId | Id |
ID of the associated feature set. |
IsIncluded | Boolean |
Whether it is included |
Name | String |
Name of the feature |
ProdFeatureValueSOId | Id |
Product Feature Value SoId |
ProdId | Id |
ID of the product. |
Sequence | Decimal |
The feature display sequence |
Value | String |
Product Feature Value |
Code Sample
The sample below enables you to fetch the IDs of the selected products. Two or more products should be selected to enable comparison. After the user selects two or more products such as a Laptop from different vendors, invoke this API.
Code sample
The sample code below allows you to create a table in a Visualforce page to display the compared products:
Integration Details
Use the following information in your integrations with CPQ Web Services API. Refer to Integrating Conga with External Systems for information on how to get started.
API Prerequisites
None.