Apex articles
Page 9 of 9 · 107 articles
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 & NOT LIKE: Wildcards, Examples & Best Practices
SOQL LIKE and NOT LIKE explained: wildcards (% and _), case sensitivity, escaping, performance gotchas, and the exact...
WhatId vs WhoId in Salesforce: What They Mean & When to Use Each
WhatId references non-Person records (Account, Opportunity, Custom Objects). WhoId references people (Lead or Contact)....