Loading
×Sorry to interrupt
CSS Error
Lightning Web Component

UI Object Info API

  • Descriptor

    lightning-ui-object-info-api

    Targets

    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:

  • getObjectInfo
  • getObjectInfos
  • getPicklistValues
  • getPicklistValuesByRecordType

For this module's specification and examples, see the Lightning Web Components Developer Guide.

LWC Recipes

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-info
  • c-wire-get-picklist-values
  • c-wire-get-picklist-values-by-record-type
Documentation
Specification