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 TypeDescription
TextStores short text (e.g., names)
Text AreaFor longer text (e.g., descriptions)
NumberStores numeric values
Date/DateTimeStores date or date+time
CheckboxStores true/false (Yes/No)
PicklistDropdown menu with predefined values
Lookup RelationshipLink to another object
FormulaCalculates 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__c may look up a Manager__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 to Customer__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:

  1. Go to Setup

  2. Click on Object Manager

  3. Select the object (e.g., Account or your custom object)

  4. 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__c for 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

ConceptWhat It Means
ObjectTable that holds data (like Customer, Student)
FieldColumn in the table (like Name, Email)
RecordRow in the table (actual data)
StandardDefault by Salesforce
CustomCreated by users


Comments

Popular posts from this blog

Tosca System Requirements and Installation Guide (Step-by-Step)

How to Install Selenium for Python Step-by-Step

Tosca Commander: A Beginner’s Overview