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

See Get Related Lists Info.

  • parentObjectApiName—(Required) The API name of a parent object that you want to get related lists for, like an Account.
  • recordTypeId—(Optional) The 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