Salesforce Objects and Fields

Hey guys, today we are going to discuss object and fields in Salesforce. If you have learned any object-oriented programming language like c++, java then definitely, you will be familiar with the object. If you do not know, then I’ll tell you in a very easy language. Any real-world entity which you want to represent in a programming language is called an object. For example,suppose you want to describe the car in a program then your object will be a car. And you will create an object with the name car.

Don’t worry I’ll tell you how we can create the object in Salesforce. It is very simple as compared to any other language. Now to store the attributes of the car, you need some different type of fields.



Object Name :

  -> Car

Object Fields:

  ->  Text – For storing the Model name, Brand name, color of a car, mileage of a car.

  -> Number – For storing the number of gear. Or any integer data which is related to it.

  -> Currency – For storing the price of the car.

You can create multiple types of fields as per your need. So, I hope now you are

 familiar with the object. Now, we will discuss about Salesforce object and fields. Salesforce supports two types of object.

  1. Standard Object

When you create your developer org, Salesforce provides some standard objects and fields. If you don’t know how to create developer org, then you can go through my previous article click here.

Some standard object of Salesforce:-

   Account

   Contact

   Contract

   Opportunity

   Case

   Lead

  1. Custom Object:

As per your need, you can create your own object.



Setup >>  Quick Find >> Object >> New custom object . In lightning experience, you can directly click on the side icon of the object and click on the new object.

Note:- You notice or not. Some object names end with __c. Do you know what is it actually?  It means that object or field is custom.

One more important thing is the Label name and API name of the object. So, please remember it. The label name is just for UI(User Interface).  It can be duplicated, but the API name can’t be duplicate in the whole org. It will always be unique, and we will use the API name of fields and object for access it in our program.   

Same as the object, fields also have two types, and Salesforce provides some data type for the type of fields and some relation for creating the relationship between two objects.

I hope you enjoyed this article. For more of these kind of articles stay tuned. Happy Coding!

Reference:

Object Basics

Did you enjoy this article?
Signup today and receive free updates straight in your inbox.
I agree to have my personal information transfered to MailChimp ( more information )
50% LikesVS
50% Dislikes