Loading
Enhance Salesforce with Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Lightning Types

          Lightning Types

          Lightning types are JSON-based data types used to structure, validate, and display data. While Salesforce provides a set of standard Lightning types, you can create custom Lightning types to customize the UI experience based on your business requirements.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions.
          • Custom Lightning Types Overview
            Learn about custom Lightning types, the benefits they provide, and how field mapping works.
          • 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.
          • Apex-Based Custom Lightning Types
            An Apex-based custom Lightning type uses an Apex class to define its schema. Instead of manually creating fields, you map the type directly to your Apex class structure. This method is ideal when you have a complex data structure already defined in your Apex class code.
          • Object-Based Custom Lightning Types
            With an object-based custom Lightning type, you can define a schema manually by specifying fields. This method is ideal when you want to structure data without referencing an Apex class.
          • Considerations and Limitations for Custom Lightning Types
            Review the considerations and limitations for custom Lightning types.
           
          Loading
          Salesforce Help | Article