getRelatedListsInfo
Use this wire adapter to get the metadata for RelatedLists
in an object’s default layout.
parentObjectApiName
—(Required) The API name of a parent object that you want to get related lists for, like an Account.recordTypeId
—The ID of the parent record type.
data
—Related List Summary Collectionerror
—FetchResponse
This code example fetches the related lists info by API name of the parent object, then iterates through the related lists.
See Also
- Understand the Wire Service
- Handle Errors in Lightning Data Service
- Salesforce Objects Supported by lightning/ui*Api Modules