Skip to main content
New tool CRON Expression Builder — preview next run times before you schedule Apex. Open the builder →

Apex articles

Page 2 of 9 · 106 articles

Apex

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,...

· 6 min read
Apex

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,...

· 6 min read
Apex

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...

· 5 min read
Apex

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...

· 5 min read
Apex

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...

· 4 min read
Apex

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...

· 5 min read
Apex

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...

· 5 min read
Apex

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...

· 10 min read
Apex

PR Validation 10x Slower: Solving Permission Set Bottlenecks

Discover why bundling Permission Set metadata with Apex classes triggers massive performance degradation in Salesforce...

· 5 min read
Apex

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...

· 5 min read
Apex

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...

· 4 min read
Apex

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...

· 5 min read