Apex articles
Page 2 of 9 · 106 articles
Apex: The Complete Guide to Salesforce's Programming Language
Apex is Salesforce's strongly-typed, server-side language. This pillar covers data types, triggers, async patterns,...
SOQL: The Complete Guide to Salesforce Object Query Language
SOQL is the SQL-flavored query language Salesforce ships for reading data. This pillar page covers every operator,...
Apex String Class: 30 Methods Salesforce Developers Use Daily
Every Apex String method that matters in real code — split, join, contains, trim, escape, format, and the ones that...
Types of Apex Triggers in Salesforce: Before, After & 7 Trigger Events
Apex triggers come in two timing variants (before and after) and seven event types. Knowing which to use prevents...
SOQL CONTAINS vs LIKE vs INCLUDES: When to Use Each Operator
SOQL doesn't have a CONTAINS keyword — but most queries searching for one need LIKE with wildcards or INCLUDES for...
SOQL NOT IN, NOT EQUAL & NOT LIKE: Exclusion Patterns Explained
Three ways to exclude records in SOQL — NOT IN with subqueries, != / <> for direct comparison, and NOT LIKE for pattern...
SOQL ORDER BY: Sort, NULLS FIRST/LAST & Multi-Column Examples
Every SOQL ORDER BY pattern in one place — ASC/DESC, multi-column priority, NULLS FIRST vs NULLS LAST, sorting by...
Formula Field in SOQL WHERE Clause: Best Practices
Leverage the power of formula fields directly within your SOQL WHERE clauses to build more dynamic and insightful...
PR Validation 10x Slower: Solving Permission Set Bottlenecks
Discover why bundling Permission Set metadata with Apex classes triggers massive performance degradation in Salesforce...
Stateful Batch Apex: Should You Cache Picklist Values?
Storing metadata like picklist values in stateful variables can seem like a performance win, but it often leads to...
Calling Apex Methods to Create Records in Loops from LWC
Discover the most efficient ways to handle bulk record creation from Lightning Web Components. We'll explore why...
Detect Login As in Apex: Is SubstituteUser Reliable?
Discover whether the SubstituteUser session type is a robust solution for detecting 'Login As' events. We explore the...