Request Data Object - Apttus_CPQApi.CPQAsset.ChangeAssetsRequestDO
Name
Type
Description
AssetIds
List<ID>
List of asset IDs to be amended.
CartId
ID
ID of the cart for which an asset is being amended.
Response Data Object - Apttus_CPQApi.CPQAsset.ChangeAssetsResponseDO
Field
Type
Description
LineItemMap
List<LineItemEntryDO>
Line items that are amended.
Errors
List<String>
List of error messages if any error occurred.
LineItemEntryDO
Name
Type
Description
LineItemId
ID
Lineitem ID
LineItemSO
Apttus_Config2__LineItem__c
LineItem SObject
Code Sample
The following code sample helps you change the value of assets.
Public Apttus_CPQApi.CPQAsset.ChangeAssetsResponseDO changeAssets()
{
// create and populate request object
Apttus_CPQApi.CPQAsset.ChangeAssetsRequestDO request = new Apttus_CPQApi.CPQAsset.ChangeAssetsRequestDO();
request.CartId = 'a1I6C000000k6lmUAA';
// list of primary asset ids to be amended
request.AssetIds = new List<ID> {'a0e6C000001uATS', 'a0e6C000001aULM'};
// call changeAssets API
Apttus_CPQApi.CPQAsset.ChangeAssetsResponseDO response = Apttus_CPQApi.CPQAssetWebService.changeAssets(request);
return response;
}