Understanding of Objects in Salesforce

The object is like a database table which is used to store specific information in a salesforce org. For example, if we want to store information regarding the students, so we can create an object named “Student” to store the information of students.


To understand the object let’s suppose if I want to store information in our database regarding students of an institute. Then we will create a data table as Student table where the table is having columns and rows. Similar in Salesforce, Object is a data table and Fields are as columns and Records stored in the database are rows.


Types of Objects in Salesforce:

Salesforce supports several different types of objects. In Salesforce, standard objects, custom objects, BigObjects, external objects and platform events, these are different types of object available. But mostly, we focus on the two most common types of objects: Standard and Custom.

  1. Standard Object
  2. Custom Object


Standard Objects: Those objects which are already created or developed by Salesforce itself known as Standard Objects. Standard objects are already included with Salesforce by default. Common business standard objects are: Account, Contact, Lead, Opportunity, Case etc.

We can modify the standard objects but we cannot delete it. We can add new fields inside a standard object, we can hide the fields and we can add new functionality but we cannot delete the existing functionality available in any standard object.


Custom Objects: Those objects which developers or admin create new as per the business requirements if the object in not available in standard object in salesforce.

For example, we have a requirement that an institute wants to store their student’s information like students name, phone, mail, address, etc. and they don’t want to use a standard object then the developer can create a new custom object with the name of Student. And also can create fields according to that inside an object.


How to create an object in Salesforce:  

  1. Login to your Salesforce developer org.
  2. Click the gear icon at the top of the page in right side and launch setup.
  3. Click the Object Manager
  4. Click on available CreateButton | Custom Object in the top-right corner.
  5. For Label, enter Student. Review and check that the Object Name and Record Name fields will be auto-filled.
  6. For Plural Label, enter Students.
  7. Before saving the custom object, scroll to the bottom of the page and there is a checkbox Launch New Custom Tab Wizard after saving this custom object, Select it.
  8. Leave the rest of the values as default and click Save.
  9. On the New Custom Object Tab page, click the Tab Style field and select a style you like. The icon from style set is used to display in the UI for the object.
  10. Click NextNext, and Save.

Great job! You just created your new custom object.


Extra features come with the creation of an object:

When we create a custom object, salesforce creates a few extra things automatically.
Those features are like some standard fields, primary page layout, etc.

When we create a custom object, salesforce creates 3 Standard fields: CreatedBy, LastModifiedBy, and Owner. These field holds information regarding users and date and time like the Owner field is having information that which user is the owner of the particular record. The CreatedBy field holds the information that who has created the record and on which date and at what time. The LastModifiedBy field holds the information that who has modified the record information and on which date and time.


Difference between Standard Object and Custom Object:

Standard Object Custom Object
Standard objects included in Salesforce already by default The developer or Admin creates new as per the requirement
Standard Object cannot be deleted We can delete the custom object
We can modify the Standard object like adding new fields but cannot delete existing fields We can add, modify or delete the fields created by us in a custom object
The API name of a standard object is similar to the label of the object.

For example, Account is the label so the API name is also Account

There is double underscore is added in the last of the name of the custom object.

For Example, Student is the label of the custom object then the API name will be Student__c



For Free, Demo classes Call:  7370000325
Registration Link: Click Here!

Author:  Rohit Kumawat

Salesforce Trainer

IT Education Centre Placement & Training Institute

© Copyright 2023 | IT Education Centre.