Configure Price Quote (CPQ) CPQ for SOAP API Developers API Reference Asset Service Current: Merging Duplicate Assets PDF Download PDF Download page Merging Duplicate Assets. Current page All pages Merging Duplicate Assets This global method enables you to merge duplicate assets automatically.MethodSignaturemergeAssetsstatic Apttus_Config2.CPQStruct.MergeAssetsResponseDO mergeAssets(Apttus_Config2.CPQStruct.MergeAssetsRequestDO request)ParametersNameTypeDescriptionApttus_Config2.CPQStruct.MergeAssetsResponseDOrequestRequest object invoked by the methodRequest Data Object - Apttus_Config2.CPQStruct.MergeAssetsResponseDOFieldTypeDescriptionAssetIdsList The list of the ID of assets you want to merge.CartIdIDThe ID of the cart that consists of assets to be incremented.MergeAssetItemDOApttus_Config2.CPQStruct.MergeAssetDOThe merge asset data objects.Data Object - Apttus_Config2.CPQStruct.MergeAssetDOFieldTypeDescriptionEndDateDateThe asset end date for merge.ProductIdIdThe ID of the assets to be merged.QuantityIntegerThe quantity of the asset.StartDateDate The asset start date for merge.Response Parameter - Apttus_Config2.CPQStruct.MergeAssetsResponseDO FieldTypeDescriptionErrorsListReturns the list of errors if any.LineItemMapMap<ID, Apttus_Config2__LineItem__c>Returns all line items with all their field values.Code SampleThe following sample enables you to merge a list of assets in a cart. Apttus_Config2.CPQStruct.MergeAssetsRequestDO request = new Apttus_Config2.CPQStruct.MergeAssetsRequestDO(); for (AssetLineItemWrapperClass record : wrapperAssetLineItemList) { if (record.selected) { request.AssetIds.add(record.assetId); } } request.CartId = 'a1I3J000000BKJeUAO'; request.MergeAssetItemDO.startdate = Date.newInstance (2017, 06, 01); Apttus_Config2.CPQStruct.MergeAssetsResponseDO response = Apttus_Config2.AssetService.mergeAssets(request); ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.info, mergeAssets: ' + response)); CODE ×