Apex articles
Page 9 of 9 · 108 articles
Apex Best Practices - Salesforce Developer Interview Guide
Ever hit a SOQL 101 error on a Friday afternoon? Here are the Apex best practices that keep your code scalable, and...
How to Pick the Right Salesforce Trigger Framework
Messy Apex and triggers firing in the wrong order are usually a pattern problem. Here is how the handler pattern and...
Top Mistakes Developers Make in Salesforce Apex Triggers
Non-bulkified code, several triggers on one object, hardcoded IDs and weak error handling are the Apex trigger mistakes...
Apex Null Coalescing Operator (Spring '24)
Apex's null coalescing operator (??), added in Spring '24: what it returns, how chaining and short-circuiting behave,...
Efficient Ways to Call Apex Methods from LWC in Salesforce: Pros and Cons
Recalculate Formula Fields without DML Statement
Trigger assignment rules from apex
Automatically assign the leads or cases to users or queue using assignment rules when they are inserted via API or...
SOQL LIKE and NOT LIKE: Wildcards, Syntax and Apex Examples
SOQL has no NOT LIKE operator. Write (NOT Name LIKE '%x%') instead. This guide covers % and _ wildcards, escaping,...