Create Objects in a Lightning app

Hello Salesforce Thinkers, In our previous blog we learned how to Create a Lightning App , in this blog we are going to learn how to “Create Objects in a Lightning App.

Objects:- Objects are database tables that allow us to store data, specific to the organization in Salesforce. We can put all the information that we put into the columns and rows of a spreadsheet into one object.

Types of objects :-

  • Standard Objects
  • Custom Objects

Standard Objects:-

The objects provided by salesforce is called standard objects.

Examples of standard objects are Accounts, Contacts, Opportunities, Leads, Products, Campaigns, Cases, Users, Contracts, Report, and Dashboards, etc.

Custom Objects:-

The objects created by us are called custom objects. Custom objects store information that is unique and important to your organization. Custom objects have properties such as Custom fields, Relationship to other objects, Page Layouts and Tab.

To create Lightning Objects follow the below steps:-

We can create an object with two ways.

1. From the topright corner of any page in Setup, click Create >> Custom Object.

This image has an empty alt attribute; its file name is new-object.png

2. Setup >> Object Manager >> New Object.

This image has an empty alt attribute; its file name is second-object.png

Enter the Label, Plural Label, Object name and Description.

This image has an empty alt attribute; its file name is new-object-page.png

Record Name

Also enter Record Name according to the data type.

This image has an empty alt attribute; its file name is second-new-1.png

There are two data types available to create record name, those are

  1. Text
  2. Auto Number

Optional features

And also we have the following optional features while creating an object.

  • Allow reports: If we check this check box, then only these objects are available to create reports.
  • Allow Activities: If we check this check box, then we can create activities on this object.
  • Track Field History: If we check this check box then only we are to track fields. We can track up to 20 fields for a single object.

Deployment Status:-

In development: If we check this check box, this object is still in development mode. This object is not available for deployments.

Deployed: If this checkbox is selected then only the object will be available for deployment.

This image has an empty alt attribute; its file name is save-1.png

Search Status :-

When the setting is enabled, users can find records of this object type when they search.

  • Allow Search

Object Creation Option (Available only when custom object is first created)

  • Add notes and attachments related list
  • Launch a new custom tab wizard after saving this custom object

 If we select this check box, we can add our object as a tab in our app.

After completing all the details.

Click on Save.

This image has an empty alt attribute; its file name is detail.png

Woohoo! your object is created, you can edit or delete It with the help of Edit and Delete buttons.

Thank you for reading this blog, hope it is helpful for you.

2 thoughts on “Create Objects in a Lightning app

Leave a comment