lightning/stateManagerObjectInfos
This state manager retrieves metadata about multiple objects. The response includes metadata describing each object’s fields, child relationships, record type, and theme.
ObjectInfo details depend on only the developer (API) names of the objects.
setConfig()Provide the entire configuration as an object. This function is equivalent to the factory function when you create the state manager.
setObjectApiNames()Set the object API (developer) names for the objects to retrieve metadata for. Provide an array of strings that represent supported object names.
statusThe current status of the state manager. See
statusfor details.dataWhen
statusis "loaded", aresultsobject with Object Info metadata and status codes. See the example response later in this topic.errorWhen
statusis "error", this property contains details. Seeerrorfor details.
Get the object metadata using data.results. The object metadata is returned in the same order that they’re requested. If a requested object contains an error, the error code and message are returned in data.results[].result. The error object is returned only if the server call fails.
See Also
- getObjectInfos wire adapter
- User Interface API Developer Guide: Get a Batch of Object Metadata