
Apex Trigger Basics: Events and Context Variables
Apex Trigger Basics start with one idea: a trigger is Apex code that runs automatically when records are inserted, updated, deleted or undeleted. You…
Topic

Apex Trigger Basics start with one idea: a trigger is Apex code that runs automatically when records are inserted, updated, deleted or undeleted. You…

Apex Governor Limits are the rules that cap how much work one piece of Apex code can do in a single transaction. They limit…

Dynamic SOQL in Apex lets you build a query as a text string while the code runs, then execute it. This is useful when…

Apex Savepoints and Rollback let you mark a point in your transaction and undo every database change made after it. If step three of…

The Apex Database Class gives you DML methods with more control than plain DML statements. Its best-known feature is partial success. When you load…

DML Operations in Apex are the statements that create, change and remove records in the Salesforce database. DML stands for Data Manipulation Language. Until…

SOSL in Salesforce lets your code search for a word across many objects at once, just like the global search box. For example, one…

SOQL Date Literals are ready-made words, such as TODAY or LAST_N_DAYS:30, that stand for a date range in a query. Bind variables let you…

SOQL Aggregate Functions calculate totals, averages, counts and other summary values directly in the database. Instead of loading 5,000 records and adding fees in…

SOQL Relationship Queries let you read related records in one query, such as each enrolment with its course name, or each course with all…