getRelatedListsInfo

Use this wire adapter to get the metadata for RelatedLists in an object’s default layout.

See Get Related Lists Info.

Parameter NameTypeDescriptionRequired?
parentObjectApiNameStringThe API name of a parent object that you want to get related lists for, like an Account.Yes
recordTypeIdStringThe ID of the parent record type.

This code example fetches the related lists info by API name of the parent object, then iterates through the related lists.

See Also