Table of Contents
Preface
Section 1 – Triggers, Testing, and Security
Chapter 1: Common Apex Mistakes
Technical Requirements
Null pointer exceptions
Exceptions on object instances
Exceptions when working with maps
Retrieving configuration data in a bulkified way
Bulkification – querying within loops
Hardcoding
Summary
Chapter 2: Debugging Apex
Technical requirements
Debugging on Salesforce
Prevention is better than a cure
Log levels
SFDX and streaming logs
Debugging using the Apex Replay Debugger
Apex Interactive Debugger
ISV Customer Debugger
Which tool to use?
Summary
Chapter 3: Triggers and Managing Trigger Execution
Technical Requirements
The Salesforce order of execution
An example scenario
The save order of execution
Clicks and code
Get Mastering Apex Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.