You are on page 1of 5

FIELDS

Fields in Salesforce are equivalent to columns in relational database.


There are 2 types of fields in Salesforce.
Standard field
There are 4 Standard field for every custom object.
ex. Created by, Last modified by, Owner and field created at time of object
creation.
Standard field cannot be created or deleted and are always required.
Custom field
They are created to meet the business needs of the organization.
ex. Phone, Email, Country etc.
Custom field may or may not be required.
DIFFERENT DATA TYPE

 Number
 Date
 Email
 Phone
 Text
 URL
 Rollup summary
 Lookup relationship
 Master-detail relationship
 Currency
 Picklist
 Picklist(Multiselect)
CREATING FIELD

Create field for Standard objects


 Setup > Build > Customize > Select object > Click on field
 Go to Custom field and relationship click on New and create
Custom field
Create field for Custom objects
 Setup > Build > Create > object > Select object > Click on field
 Go to Custom field and relationship and create field in Custom
object
FIELD DEPENDENCY

Field dependency means controlling a field value based on other field value.
There are 2 types of fields in field dependency.
1. Controlling field
The value of this field controls the value of dependent field.
ex. Country is controlling field
2. Dependent field
The value of this field depends on value of controlling field
ex. State is dependent field
Datatype Controlling Dependent
Standard picklist Y N
Custom picklist Y Y
Custom Multi N Y
picklist
Standard checkbox Y N
Custom checkbox Y N

You might also like