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

Apex articles

Page 4 of 9 · 106 articles

Technical visualization of overcoming the Apex heap limit for complex native document generation processes.Apex

Beating 6MB Apex Heap Limit: Native Document Generation

An architecture that generates PDFs with embedded images and large record sets inside Apex governor limits. Binary data...

· 5 min read
A 3D rendered digital padlock symbol illustrating code security in dynamic SOQL in loops.Apex

Dynamic SOQL in Loops: Security Review Impact for Managed Packages

Dynamic SOQL inside a loop does not fail Salesforce Security Review for a managed package, because the scan treats it...

· 8 min read
Screenshot of Apex Cursors documentation and LWC template syntax in Salesforce Spring '26 releaseApex

Salesforce Spring '26 - Apex Cursors and LWC Expressions

I've been testing the Salesforce Spring '26 preview, and the new Apex Cursors change what is realistic for large data...

· 5 min read
A detailed diagram illustrating the complex logic flow within an Apex Approval Process in Salesforce.Apex

Mastering the Apex Approval Process for Complex Logic

Standard approval tools are great, until they aren't. Here is how I use Apex to handle the complex routing and bulk...

· 5 min read
A conceptual diagram illustrating the new Apex Zip Namespace features for managing zip files in Salesforce.Apex

Guide to the Apex Zip Namespace in Salesforce Spring '25

Salesforce finally added a native way to handle zip files without AWS or external libraries. Here is how ZipWriter and...

· 4 min read
Diagram illustrating how to manage and optimize code to stay within Asynchronous Apex Limits in Salesforce.Apex

How to Stay Under Asynchronous Apex Limits in Salesforce

Ever hit a 'Too many future calls' error right before a big deployment? It happens to the best of us, and it usually...

· 5 min read
Diagram illustrating how Apex Cursors efficiently stream large data volumes to Lightning Web Components.Apex

How to Use Apex Cursors to Stream Large Datasets in LWC

If you are tired of hitting heap limits when loading records into LWC, look at Apex Cursors. They handle large data...

· 5 min read
Visual representation of 8 practical Agentforce use cases streamlining Salesforce developer tasksApex

8 Practical Agentforce Use Cases for Salesforce Developers

I've been experimenting with Vibe coding and it has changed how I approach legacy projects. Here are 8 ways Agentforce...

· 5 min read
Code example demonstrating how to calculate Apex business hours for accurate Salesforce reporting and filtering.Apex

Calculate Apex Business Hours and Day of Week in Salesforce

Stop letting weekends wreck your lead response reports. Here is the Apex I use to find the day of the week and count...

· 5 min read
A comparison graphic illustrating when to choose Apex code over Salesforce Flow automation toolsApex

Apex vs Flow - When to Use Code Over Salesforce Automation

We've all heard the 'Flow First' mantra, but sometimes you want the power of code. Here is where I stop building Flows...

· 5 min read
Diagram illustrating how an Apex Trigger executes during a mixed record upsert operation in SalesforceApex

Apex Trigger Upsert - How Many Times Does It Execute?

Your automation runs twice during an upsert because Salesforce splits the records into two buckets before the trigger...

· 4 min read
Code snippet showing how to use the Apex System.setPassword method for setting Salesforce user passwords quicklyApex

System.setPassword in Apex: Set a Salesforce User's Password

System.setPassword(userId, password) sets a Salesforce user's password from Apex in one line, with no reset email. The...

· 4 min read