toriqsagor

Bulkification (Most Important Rule) What Is Bulkification? Bulkification means writing trigger logic that works correctly when one record or many records are processed together. Simple Explanation Salesforce can save 200 records at once.Your trigger must handle all of them in one go. Real-Life Example Processing payroll for 1 employee vs...

More
  • January 6, 2026

Trigger Events & Context Variables What Is a Trigger? A Trigger is Apex code that runs automatically when a record is inserted, updated, deleted, or restored. Simple Explanation A trigger is like a motion sensor—when data changes, the trigger reacts. Trigger Events (When Triggers Fire) Common trigger events: before insert...

More
  • January 6, 2026

DML Operations: insert, update, upsert, delete, undelete What Is DML? DML (Data Manipulation Language) is used to change data in Salesforce. Simple Explanation DML is how you save, edit, or remove records in Salesforce. Common DML Operations insert – Create new records Account acc = new Account(Name = ‘ABC Ltd’);...

More
  • January 6, 2026

Aggregate Queries What Are Aggregate Queries? Aggregate queries are used to calculate values like totals, counts, averages, minimums, and maximums. Simple Explanation Instead of reading every record, ask Salesforce to do the math for you. Common Aggregate Functions COUNT() SUM() AVG() MIN() MAX() Real-Life Example “How many contacts do we...

More
  • January 5, 2026

What Is SOQL? SOQL (Salesforce Object Query Language) is used to retrieve data from Salesforce objects (like Account, Contact). Simple Explanation SOQL is Salesforce’s version of SELECT queries, designed for CRM data. Basic Query Structure SELECT FieldName FROM ObjectName Real-Life Example You want a list of customer names from Salesforce....

More
  • January 5, 2026

try / catch / finally What Is Exception Handling? Exception handling lets your code handle errors gracefully instead of crashing. Simple Explanation It’s like a seatbelt—you hope you won’t need it, but it protects you when something goes wrong. Real-Life Example If an ATM transaction fails, you get a message—not...

More
  • January 5, 2026

Inheritance & Polymorphism What Is Inheritance? Inheritance allows a child class to reuse properties and methods of a parent class. Simple Explanation A child inherits features from parents. Real-Life Example Parent: Vehicle Child: Car, Bike Both are vehicles, but each behaves differently. Code Example (Inheritance) public class Vehicle { public...

More
  • January 5, 2026

Classes & Methods What Is a Class in Apex? A class is a blueprint that defines behavior (methods) and data (variables). Simple Explanation A class is like a recipe, and methods are the steps. Code Example public class Car { public void drive() { System.debug(‘Car is moving’); } } What...

More
  • January 5, 2026

List, Set & Map in Apex What Are Collections? Collections are used to store multiple values in one variable.They are essential in Apex for bulk processing and performance. Simple Explanation Collections are like containers that hold many items together. List (Ordered & Allows Duplicates) When to Use List Order matters...

More
  • January 5, 2026

Conditional Statements: if / else, switch What Are Conditional Statements? Conditional statements allow Apex to make decisions based on conditions. Simple Explanation “If this condition is true, do this. Otherwise, do something else.” if / else Statement Real-Life Example If your bank balance is enough → you can buy a...

More
  • January 5, 2026