Saturday, January 20, 2024

Fields in Salesforce

Fields in salesforce represents columns in a table, we can choose from many different data types, such as formula, date, text, numeric, email, phone, picklist, etc. as per our business requirement to store the data.

There are 2 types of fields in Salesforce:

1. Standard Field 

2. Custom Fields

1. Standard Fields:

Standard fields are nothing but salesforce will create the fields when we create any custom object as shown below.


2. Custom Fields:

Custom fields in salesforce will create by ourselves as per our business needs to store the data in different format by using data types which is provided by salesforce as shown below. API names are suffix with __c for custom fields.



Objects in Salesforce

Salesforce objects are like database tables which will allows to store records/data in salesforce organization.

They are three types of objects: 

1. Standard Objects

2. Custom Objects

3. External Objects


1. Standard Objects:

These objects are created by salesforce itself which will support developers/admins to use in different types of cloud applications like (Sales cloud, Service cloud, Marketing cloud etc..,). API Name of object will not contain any suffix as shown below.



Important Standard Objects are:

Account, Case, Contract, Lead, Opportunity, Contact, User

2. Custom Objects:

These objects are created by us when the requirement is not fulfill by standard objects or whenever it doesn't meet the criteria we need, we can build ourselves to suit our own specific needs, for example in bank projects agent needs to store loan information in Loan custom object.

API Name of custom object will suffix with __c as shown below.



3. External Objects:

These objects are almost similar to custom objects which we can use in Visualforce pages, Apex, Custom Tab, SOQL, SOSL,  but records will store outside of salesforce organization like in Oracle, SAP etc.., 

Each external object will connect with external data source which will specifies to connect to external system, so we don't have to maintain records again in Salesforce and we can access data on demand through Salesforce connect adaptors (Cross -Org, OData 2.0, OData 4.0, Custom Adapter created visa Apex).

API Name of custom object will suffix with __x as shown below.