Create a Custom Lightning Type

Define data structures and user interface configurations for supported platform features. You can base your type on an Apex class to ensure data consistency, or define a custom structure manually by using a JSON schema.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Performance, Unlimited, and Developer Editions.
  1. From Setup, in the Quick Find box, enter Lightning Types, and then select Lightning Types.
  2. Click New Lightning Type.
  3. Enter a label and an API name for the Lightning type. 
  4. Optionally, enter a description.
  5. Click Next.
  6. To define the schema for your Lightning type, select Apex and then select the appropriate Apex class. To define a custom schema, select Object.
    Note
    Note The Apex Class dropdown list doesn’t show file-based Apex classes. If you can’t find your class in the list, you can manually enter its fully qualified name.
  7. Click Create.