getRelatedListInfoBatch
Use this wire adapter to get the metadata for a batch of RelatedLists
.
See Get a Batch of Related List Metadata.
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. | |
relatedListNames | String[] | An array of comma-separated strings that contain the API names of supported related lists for the parent object such as Contacts, Opportunities, or Cases. relatedListNames maps to relatedListIds in the User Interface API resource. | |
recordTypeId | String | The ID of the parent record type. If not provided, the default record type is used. |
data
—Simplified Batch Resultserror
—FetchResponse
This code example fetches the metadata for the Contacts and Opportunities related lists in the Account object, then iterates through the list of display columns.
See Also
- Understand the Wire Service
- Handle Errors in Lightning Data Service
- Salesforce Objects Supported by lightning/ui*Api Modules