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.
From Setup, in the Quick Find box, enter Lightning Types, and then
select Lightning Types.
Click New Lightning Type.
Enter a label and an API name for the Lightning type.
Optionally, enter a description.
Click Next.
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 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.
Click Create.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.