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.

status

The current status of the state manager. See status for details.

data

When status is "loaded", a results object with Object Info metadata and status codes. See the example response later in this topic.

error

When status is "error", this property contains details. See error for 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