Get a Count of Assets
This API returns the count of asset line items of various accounts.
API |
Signature |
---|---|
countAssetLineItems |
WebService static Apttus_CPQApi.CPQAsset.QueryAssetsResponseDO countAssetLineItems (Apttus_CPQApi.CPQAsset.QueryAssetsRequestDO request) |
Parameters |
||
---|---|---|
Name |
Type |
Description |
request | Apttus_CPQApi.CPQAsset.QueryAssetsRequestDO |
Request object passed by the invoker method. |
Request Data Object - Apttus_CPQApi.CPQAsset.QueryAssetsRequestDO |
||
---|---|---|
Name |
Type |
Description |
AccountIds | List<ID> |
List of account IDs. |
CustomFilter | String |
SOQL condition expression used as a custom filter. For example, you can request only assets after a specified billing end date. This is optional. |
Descending | Boolean |
N/A |
FieldNames | List<String> |
N/A |
SortFields | List<String> |
N/A |
Offset | Integer |
N/A |
Nrecord | Integer |
N/A |
Response Data Object - Apttus_CPQApi.CPQAsset.QueryAssetsResponseDO |
||
---|---|---|
Field |
Type |
Description |
AssetCount | Integer |
Number of assets returned. |
AssetLineItems | List<Apttus_Config2__AssetLineItem__c> |
N/A |
Errors | List<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.