webService static Apttus_CPQApi.CPQ.RemoveOptionsResponseDO removeOptions(Id cartId, Integer lineNumber, List componentIds)
Request Parameter
Name
Type
Description
cartID
ID
The ID of the cart the bundle belongs to.
lineNumber
Integer
The line number of the bundle line items.
componentIds
List<ID>
The list of component IDs of the relevant option line items
Response Data Object - Apttus_CPQApi.CPQ.RemoveOptionsResponseDO
Field
Type
Description
IsSuccess
Boolean
Indicated whether the removal was successful. The values returned are true and false.
RemoveIds
List<ID>
The IDs of removed option line items.
Code Sample
The sample code below enables you to remove options from the bundle and get the removal status and list of Ids of the removed options.
/**
* The below method demonstrates how to remove options from bundle
*/
Public void deleteOptions(Id cartDd, Integer lineNumber, List<Id> componentIds) {
Apttus_CPQApi.CPQ.RemoveOptionsResponseDO response = Apttus_CPQApi.CPQ.RemoveOptionsResponseDO();
Response = Apttus_CPQApi.CPQWebService.removeOptions(cartId, lineNumber, componentIds);
System.debug(‘Has removed? ‘ + Response. IsSuccess);
System.debug(‘Options removed ‘ + Response. RemovedIds);
}
CODE
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.