Data Types:
Integer
, Decimal
, String
, Date
, DateTime
, Boolean
, ID
, List
, Set
, Map
Browse / Salesforce cheatsheet
Salesforce cheatsheet
A comprehensive guide for experienced Salesforce developers, covering key concepts, best practices, and code examples.
Apex Essentials
Apex Syntax and Data Types
|
Example:
|
SOQL Queries: |
Example:
|
DML Operations: |
Example:
|
Control Flow: |
Example:
|
Exception Handling: |
Example:
|
Apex Classes and Methods: |
Example:
|
Triggers
Trigger Events: |
Example:
|
Trigger Context Variables: |
Example:
|
Best Practices:
|
Example:
|
Asynchronous Apex
Future Methods
Syntax: |
Example:
|
Limitations:
|
Best Practices:
|
Queueable Apex
Syntax: |
Example:
|
Chaining Queueable Jobs: |
Example:
|
Batch Apex
Syntax: |
Example:
|
Best Practices:
|
Example:
|
Schedulable Apex
Syntax: |
Example:
|
CRON Expression: |
Best Practices:
|
Visualforce
Components
|
Example:
|
|
Example:
|
Controllers
Standard Controller: |
Example (Custom Controller):
|
Data Binding: |
Example:
|
Best Practices
|
Lightning Web Components (LWC)
Core Concepts
Component Structure:
|
Example:
|
Data Binding: |
Example:
|
Event Handling: |
Example:
|
Apex Integration
Import Apex Methods: |
Example (@wire):
|
Imperative Apex Calls: |
Example (Imperative):
|
Best Practices
|
Governor Limits
Key Governor Limits
|
|
Best Practices for Avoiding Limits
|
|
|
Example
SOQL Inside Loop (Bad Practice): |
|
SOQL Outside Loop (Good Practice): |
|