Configure Price Quote (CPQ) CPQ for SOAP API Developers API Reference Asset Web Services Current: Get a Count of Assets PDF Download PDF Download page Get a Count of Assets. Current page All pages Get a Count of Assets This API returns the count of asset line items of various accounts.APISignaturecountAssetLineItemsWebService static Apttus_CPQApi.CPQAsset.QueryAssetsResponseDO countAssetLineItems (Apttus_CPQApi.CPQAsset.QueryAssetsRequestDO request)ParametersNameTypeDescriptionrequestApttus_CPQApi.CPQAsset.QueryAssetsRequestDORequest object passed by the invoker method.Request Data Object - Apttus_CPQApi.CPQAsset.QueryAssetsRequestDONameTypeDescriptionAccountIdsList<ID>List of account IDs.CustomFilterStringSOQL condition expression used as a custom filter. For example, you can request only assets after a specified billing end date. This is optional.DescendingBooleanN/AFieldNamesList<String>N/ASortFieldsList<String>N/AOffsetIntegerN/ANrecordIntegerN/AResponse Data Object - Apttus_CPQApi.CPQAsset.QueryAssetsResponseDOFieldTypeDescriptionAssetCountIntegerNumber of assets returned.AssetLineItemsList<Apttus_Config2__AssetLineItem__c>N/AErrorsList<String>List of error messages if any error occurred.Code SampleThe following code sample helps you fetch the count of asset line items of various accounts. Public Apttus_CPQApi.CPQAsset.QueryAssetsResponseDO countAssetLineItems() { Apttus_CPQApi.CPQAsset.QueryAssetsRequestDO request = new Apttus_CPQApi.CPQAsset.QueryAssetsRequestDO(); request.AccountIds = new List<ID>{'0012f00000BQd03'}; request.CustomFilter = 'Apttus_Config2__PriceType__c = \'Recurring\''; // optional // call countAssetLineItems API Apttus_CPQApi.CPQAsset.QueryAssetsResponseDO response = Apttus_CPQApi.CPQAssetWebService.countAssetLineItems(request); return response; } CODE ×