
Async Apex Types: Which One Should You Use?
Async Apex Types each solve a different problem, and picking the wrong one causes limit errors, lost jobs or code that is hard to…
Tag

Async Apex Types each solve a different problem, and picking the wrong one causes limit errors, lost jobs or code that is hard to…

Change Data Capture is a Salesforce feature that publishes an event every time a record is created, updated, deleted or undeleted. You do not…

Salesforce Platform Events let different parts of a system talk by sending messages instead of calling each other directly. One part publishes an event,…

Batch Apex processes very large numbers of records by splitting them into small chunks and running each chunk in its own transaction. One transaction…

Queueable Apex is the modern way to run background work in Salesforce. You write a class that implements the Queueable interface, queue it with…

Apex Secure Coding means writing Apex, Visualforce and Lightning code that attackers cannot trick into leaking or changing data. Sharing, CRUD and FLS protect…

Apex Managed Sharing lets your code give a user or group access to a record when sharing rules cannot express the rule. For example,…

Apex Callout Mocks let you test code that calls an outside system without making a real HTTP request. Salesforce does not allow real callouts…

Testing Async Apex means proving that code which runs later, such as Queueable jobs, Batch Apex, future methods and scheduled jobs, really does its…

Apex Exception Handling is how your code reacts when something goes wrong, such as a missing record, a failed save or a bad value.…