getRelatedListsInfo
Use this wire adapter to get the metadata for RelatedLists in an object’s default layout.
| Parameter Name | Type | Description | Required? |
|---|---|---|---|
parentObjectApiName | String | The API name of a parent object that you want to get related lists for, like an Account. | ![]() |
recordTypeId | String | 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
