getRelatedListCount
Use this wire adapter to get the RelatedList
record count.
See Get Related List Record Count.
Parameter Name | Type | Description | Required? |
---|---|---|---|
parentRecordId | String | The ID of the parent record that you want to get related lists for, like an Account ID. | |
relatedListId | String | The API name of a related list object such as Contacts, Opportunities, or Cases. | |
maxCount | Number | The maximum number of records to return. The default value is 20. |
data
—Related List Record Counterror
—FetchResponse
This code example fetches the record count for a related list.
See Also
- Understand the Wire Service
- Handle Errors in Lightning Data Service
- Salesforce Objects Supported by lightning/ui*Api Modules