Objects and Database Tables in Salesforce
Tags: codenewbie, database
Published: 2021-06-22 14:30:23

In my previous articles, I talked about what is CRM, Salesforce, and how to create your own org.
In this part, I'll be covering a go-through of Salesforce org, its Standard Objects and Database Tables.

##Login to your Salesforce org
1. First, go to https://login.salesforce.com/
![Login Page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ofk0g0tepwj9opuet1y.png)
2. Enter your credentials and you'll be redirected to your Salesforce Org.
![Lightning Experience](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n2ir4znzb96enhmdn27r.png)
![Classic Experience](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a9pnv1b44ln65algw32n.png)

Now, look at the above two screenshots. Salesforce offers you two environments to work on - 

1. Salesforce Lightning Experience
2. Salesforce Classic

The lightning experience is more catchy and newer feature of salesforce, so we will be going on with that.

Now that you have logged in - You see a couple of headers like Home, Account, Contacts, Opportunities, etc. These are the standard objects.

###Standard Objects and Fields - 
![Objects](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v44r5kmkr31ig30qfzii.png)
Objects that are provided by Salesforce.com are called standard objects. The motive behind providing such pre-defined objects is to rip out the burden of customers/businesses.
As every business and enterprise needs to keep record of customers, their contacts, orders, potential customers, sales, etc. 

Every standard objects comes with a number of fields and records already defined. Let's take an example and understand - 
1. The Standard Object - Account has a number of fields and records already created. Look at the screenshot below. The account object has these records -
![Records](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l1a729nsixmn9ygzqegi.png)

You can see a New button on the top left of Account object section. Click on it and a form to add new account opens up. All the entries of the form are called Fields. Look at the screenshot below - 
![Fields](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x467jmk9bca4jpjwt590.png)

###Custom Objects and Fields - 
Along with standard objects and pre-defined fields, Salesforce also gives you the feature to create your own objects and fields. These are called Custom objects and fields. 
You can also add new fields to standard objects.

###Creating new Fields 
1. Click on Setup and then Object Manager.
![Setup](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tqbg4zwuxpupjoepb37n.png)
2. Now click on the object where you want to create a new field or multiple fields.
3. Upon that, click on Fields and Relationships -> New.
![New fields](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pln3gup7jmfk0f56i6fa.png)
From here, you will have multiple options to create different types of fields which we will talking about in upcoming articles. Here, I just wanted to give you a roundabout of how to create new fields for standard of custom objects.

###Create New Custom Object 
1. Now, go to the same Object Manager page and click on Create to open a dropdown. Select Custom Object.
![New Object](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fcowlc78cgnkzf0pxrz1.png)
2. A new page to create custom object opens up. Fill up the object name and scroll down. Click on Save.
![Save](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1p2l8blg0aiulofqy0bc.png)
3. When you click on Save, the page for new created object opens up. Here you can edit object as you like and can create new fields for the same.
![Custom-object](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ovvnbnprpviy3o7no0n.png)

Database Tables in Salesforce are nothing but the objects and fields as these objects and fields contain all the data and records of a business or enterprise.

This was all about Objects and Fields in Salesforce. I will be talking about Relationships in the next article.