Use this action to get a list of assets that are associated with an account based on specified inputs. For example, your current customer wants to upgrade their Dedicated Internet Line - 1 Gbps to 2 Gbps, and change their VoIP calling plan. As a sales rep, you want to identify the specific internet line and VoIP service asset. With this action, you can get a list of assets that are available for a particular account.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions |
Industries CPQ API Used to Invoke Get Assets of an Account Invocable Action
- getAllAssets
Input Values
| Parameter | description | data type |
|---|---|---|
| accountId | Optional. The ID of the account record associated with an asset. | String |
| currentPage | Optional. The page number that consists the assets to display. The default value is 1. | Integer |
| filters | Optional. A comma-delimited list of filters that decides which assets to retrieve. | String |
| fields | Optional. The comma-delimited list of fields to retrieve for an asset. | String |
| offsetSize | Optional. The offset from which you want to start reading products for pagination. The default value is 0. | Integer |
| pagesize | Optional. The number of assets to retrieve. The default value is 10. | Integer |
| query | Optional. The text that was provided as a search input to filter assets. | String |
| noFilteredResponse | Optional. A Boolean value that indicates whether to provide the response without filtering. The default value is false. | String |
Output Values
| Parameter | description | data type |
|---|---|---|
| error | An error due to which the assets weren’t retrieved. | String |
| messages | A JSON string that includes the messages containing the details of the output. | List of String |
| records | A JSON string that includes the details of the assets that were retrieved. | List of String |
| totalSize | The number of assets that were retrieved. | Integer |
Example
JSON Request
accountId = (001Dn00001HfcZyIAJ)
pagesize = 10
filter = amindev_242__OneTimeTotal__c:>9,InstallDate:<=06-08-2025
JSON Response Body
totalSize (5)
records ([{"OneTimeTotal__c":{"value":700.00},"OneTimeCharge__c":{"value":700.00},"Quantity":{"value":1.00},"Id":{"value":"02iDn000008r1GpIAI"},"Product2":{"Id":"01tDn000000YJOiIAO"},"Name":"iPhone 11 Pro"}, {"OneTimeTotal__c":{"value":0.00},"OneTimeCharge__c":{"value":0.00},"Quantity":{"value":1.00},"Id":{"value":"02iDn000008r1GqIAI"},"Product2":{"Id":"01tDn000000YJQHIA4"},"Name":"2 GB 30 Days"}, {"OneTimeTotal__c":{"value":0.00},"OneTimeCharge__c":{"value":0.00},"Quantity":{"value":1.00},"Id":{"value":"02iDn000008r1GrIAI"},"Product2":{"Id":"01tDn000000YJQMIA4"},"Name":"Business Postpaid Enhanced Plan"}, {"OneTimeTotal__c":{"value":0.00},"OneTimeCharge__c":{"value":0.00},"Quantity":{"value":1.00},"Id":{"value":"02iDn000008r1GxIAI"},"Product2":{"Id":"01tDn000000YJQOIA4"},"Name":"Business Postpaid PRO Plan"}, {"OneTimeTotal__c":{"value":500.00},"OneTimeCharge__c":{"value":0.00},"Quantity":{"value":1.00},"Id":{"value":"02iDn000008r1H3IAI"},"Product2":{"Id":"01tDn000000YJPsIAO"},"Name":"Business Internet Essential"}])
messages ([])
error (null)