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

Apex articles

Page 3 of 9 · 108 articles

3D magnifying glass inspecting a glowing formula on a circuit board, illustrating formula fields in SOQL WHERE clauses.Apex

SOQL Formula: Formula Fields and FORMULA() in WHERE

SOQL gives you two ways to filter on a calculated value: a formula field in WHERE, or the Winter '27 FORMULA() beta for...

· 13 min read
A 3D puzzle piece with a lock icon representing PR validation performance and metadata security.Apex

PR Validation 10x Slower: Solving Permission Set Bottlenecks

Why the metadata engine slows down when Permission Set changes ride along with Apex classes in a Salesforce CI/CD...

· 4 min read
A 3D glass cube representing data nodes for optimizing stateful batch apex performanceApex

Stateful Batch Apex: Should You Cache Picklist Values?

Holding metadata like picklist values in stateful variables looks like a free performance win, and it brings...

· 4 min read
A 3D architectural block structure illustrating the concept of calling Apex methods to create records in loops.Apex

Calling Apex Methods to Create Records in Loops from LWC

Bulk record creation from a Lightning Web Component: why looping Apex calls is an anti-pattern, and what a bulkified...

· 4 min read
A 3D shield icon representing secure session monitoring to detect Login As in Apex code.Apex

Detect Login As in Apex: Is SubstituteUser Reliable?

Whether the SubstituteUser session type is a dependable way to detect 'Login As', what it cannot tell you, and which...

· 4 min read
A 3D vault icon representing a protected custom setting in a Salesforce development environment.Apex

Protected Custom Settings: Fixing Null Values from LWC

Protected Custom Settings return null in LWC because of the scope the Protected modifier applies. Here is what it...

· 4 min read
A 3D database server illustration representing efficient custom CSV import architecture in Salesforce.Apex

Custom CSV Import Architecture for Salesforce Developers

A pattern for parsing, validating and mapping CSV data onto multiple Salesforce objects without blowing the heap or the...

· 3 min read
An illustration of the new Salesforce Web Console interface featuring modern coding tools and data visualizationApex

Salesforce Web Console: The Developer Console Successor

Salesforce is launching the Web Console, a browser-based IDE built to take over from the aging Developer Console. It...

· 2 min read
A 3D rendering showing the Box.com Salesforce integration concept with cloud and folder icons.Apex

Box.com Salesforce Integration: Apex Backend Guide

How to wire Salesforce up to Box.com in Apex: secure authentication, the file upload patterns that hold up, and error...

· 3 min read
A 3D circuit board icon representing technical debugging within an Apex test class structureApex

Apex Test Class: Catching Thrown Exceptions in Async Batch Jobs

Why try/catch silently fails inside Batch Apex test classes, and the direct-invocation pattern that makes async...

· 6 min read
A 3D glowing data cube representing the PlatformCache immutable parameter within the Salesforce apex environment.Apex

PlatformCache Immutable Parameter: Why It Fails

Cross-namespace PUT errors in PlatformCache trace back to a known platform bug. Here is why the immutable parameter...

· 3 min read
Debugging stale SOQL return values after a successful Salesforce UI field update.Apex

SOQL Returns Old Value After UI Update

A Salesforce UI edit looks committed, and then an Apex SOQL query reads the old value back. The mismatch between the UI...

· 5 min read