Configure Price Quote (CPQ) CPQ for SOAP API Developers API Reference Asset Service Current: Changing Assets PDF Download PDF Download page Changing Assets. Current page All pages Changing Assets You can invoke this global method for changing Assets.APISignaturechangeAssetsstatic Apttus_Config2.CPQStruct.ChangeAssetsResponseDO changeAssets(Apttus_Config2.CPQStruct.ChangeAssetsRequestDO request)ParametersNameTypeDescriptionrequestApttus_Config2.CPQStruct.ChangeAssetsRequestDORequest object invoked by the methodRequest Data Object - Apttus_Config2.CPQStruct.ChangeAssetsRequestDONameTypeDescriptionAssetIdList<ID>List of Asset IDs to change.CartIdIDThe id of Cart for which an asset is being changed.Response Data Object - Apttus_Config2.CPQStruct.ChangeAssetsResponseDOFieldTypeDescriptionMap <ID, LineItem__c>LineItemMapReturns all line items with all their field values.Code SampleThe code sample below helps you make changes to an Asset by invoking this global method. // create list of asset ids List<ID> listAssetId = new List<ID>(); for (AssetLineItemWrapperClass record : wrapperAssetLineItemList) { if (record.selected) { listAssetId.add(record.assetId); } } // create and populate request object Apttus_Config2.CPQStruct.ChangeAssetsRequestDO request = new Apttus_Config2.CPQStruct.ChangeAssetsRequestDO(); request.AssetIds = listAssetId; request.CartId = cartId; // call changeAssets API Apttus_Config2.CPQStruct.ChangeAssetsResponseDO response = Apttus_Config2.AssetService.changeAssets(request); ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.info, 'changeAssets: ' + response)); CODE ×