getRelatedListCount

Use this wire adapter to get the RelatedList record count.

See Get Related List Record Count.

Parameter NameTypeDescriptionRequired?
parentRecordIdStringThe ID of the parent record that you want to get related lists for, like an Account ID.Yes
relatedListIdStringThe API name of a related list object such as Contacts, Opportunities, or Cases.Yes
maxCountNumberThe maximum number of records to return. The default value is 20.

This code example fetches the record count for a related list.

See Also