The Trailblazer Community in Slack is now in Open Beta—join and connect in real time. [Join us in Slack]
lightning/uiObjectInfoApi
Get object metadata and picklist values.
For Use In
Lightning Experience, Experience Builder Sites, Salesforce Mobile App
The lightning/uiObjectInfoApi module includes wire adapters to get object metadata and picklist values. The wire adapters are:
For this module’s specification and examples, see the Lightning Web Components Developer Guide.
The LWC Recipes GitHub repository contains code examples for Lightning Web Components that you can test in an org.
For a recipe that uses lightning/uiObjectInfoApi, see the following components in the LWC Recipes repo.
c-wire-get-object-infoc-wire-get-picklist-valuesc-wire-get-picklist-values-by-record-type