Understanding Objects and Fields in Salesforce
Understanding Objects and Fields in Salesforce
Salesforce is a powerful CRM (Customer Relationship Management) platform used by businesses to manage customers, sales, and services. One of the first concepts every Salesforce learner should understand is Objects and Fields.
π¦ What Are Objects in Salesforce?
In simple terms, Objects are like tables in a database.
They store data in Salesforce.
Each object is made up of records (like rows in a table) and fields (like columns).
There are two main types of objects:
1. Standard Objects
These are created by Salesforce by default.
Examples:
-
Account – Stores company information
-
Contact – Stores individual people info
-
Lead – Stores potential customers
-
Opportunity – Stores deals in progress
2. Custom Objects
These are created by users to store specific business data.
Example:
-
Student__c for storing student info
-
Project__c for tracking projects
Note: Custom object names end with
__c.
π§© What Are Fields?
Fields store information inside an object.
Think of fields as the attributes or properties of a record.
Example in a Student__c object:
-
Name
-
Email
-
Phone Number
-
Date of Birth
-
Course
Just like objects, there are two types of fields:
1. Standard Fields
These are automatically available in every object.
Examples:
-
Id – Unique identifier
-
Name – Name of the record
-
CreatedDate – When the record was created
2. Custom Fields
Created by users based on business needs.
They also end with __c.
Examples:
-
Course__c
-
EnrollmentDate__c
π§± Types of Fields in Salesforce
Salesforce provides different types of fields to store specific kinds of data:
| Field Type | Description |
|---|---|
| Text | Stores short text (e.g., names) |
| Text Area | For longer text (e.g., descriptions) |
| Number | Stores numeric values |
| Date/DateTime | Stores date or date+time |
| Checkbox | Stores true/false (Yes/No) |
| Picklist | Dropdown menu with predefined values |
| Lookup Relationship | Link to another object |
| Formula | Calculates values based on other fields |
π Relationship Between Objects
Objects in Salesforce can be related to each other to represent real-world connections. There are two key relationships:
1. Lookup Relationship
-
A basic connection between two objects
-
One object can "look up" another
-
Example: A
Project__cmay look up aManager__c
2. Master-Detail Relationship
-
A tighter bond between objects
-
The child record depends on the parent
-
If parent is deleted, child gets deleted too
-
Example:
Invoice__c(child) related toCustomer__c(parent)
π‘ Real-Life Example
Let’s say you’re building an app to manage college courses.
You may create:
-
Object: Student__c
-
Fields: Name, Email, Course__c
-
-
Object: Course__c
-
Fields: Course Name, Duration
-
-
Object: Enrollment__c (to link students with courses)
-
Fields: Enrollment Date, Status
-
You can link Student__c and Course__c using relationships.
π Viewing Objects and Fields in Salesforce
You can view and manage objects and fields through:
π§ Object Manager:
-
Go to Setup
-
Click on Object Manager
-
Select the object (e.g., Account or your custom object)
-
You’ll see tabs like Fields & Relationships, Page Layouts, etc.
⚙️ Use Cases
-
Sales Teams use Account and Opportunity objects
-
Support Teams use Case and Contact objects
-
Custom Apps may use objects like Delivery__c or Booking__c
✅ Tips to Remember
-
Always use naming standards like
Student__cfor custom objects -
Don’t create duplicate fields – reuse when possible
-
Use picklists to control input choices
-
Use formula fields for automatic calculations
-
Plan object relationships wisely for future reporting
π Summary
| Concept | What It Means |
|---|---|
| Object | Table that holds data (like Customer, Student) |
| Field | Column in the table (like Name, Email) |
| Record | Row in the table (actual data) |
| Standard | Default by Salesforce |
| Custom | Created by users |
Comments
Post a Comment