getRelatedListCount
Use this wire adapter to get the RelatedList
record count.
See Get Related List Record Count.
parentRecordId
—(Required) The ID of the parent record that you want to get related lists for, like an Account ID.relatedListId
—(Required) The API name of a related list object such as Contacts, Opportunities, or Cases.maxCount
—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