This API returns the count of asset line items of various accounts.

API
Signature
countAssetLineItemsWebService static Apttus_CPQApi.CPQAsset.QueryAssetsResponseDO countAssetLineItems (Apttus_CPQApi.CPQAsset.QueryAssetsRequestDO request)
Parameters

Name

Type

Description

requestApttus_CPQApi.CPQAsset.QueryAssetsRequestDORequest object passed by the invoker method.
Request Data Object - Apttus_CPQApi.CPQAsset.QueryAssetsRequestDO

Name

Type

Description

AccountIdsList<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/A
FieldNamesList<String>N/A
SortFieldsList<String>N/A
OffsetIntegerN/A
NrecordIntegerN/A
Response Data Object - Apttus_CPQApi.CPQAsset.QueryAssetsResponseDO

Field

Type

Description

AssetCountIntegerNumber of assets returned.
AssetLineItemsList<Apttus_Config2__AssetLineItem__c>N/A
ErrorsList<String>List of error messages if any error occurred.


Code Sample

The 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