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 · 107 articles

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

Set Salesforce User Passwords with Apex System.setPassword

Setting up test users by hand is a waste of time. Apex System.setPassword is the fastest way I have found to get a team...

· 3 min read
Diagram illustrating the flow and use cases for different Asynchronous Apex types in Salesforce development.Apex

Asynchronous Apex in Salesforce - When to Use Each Type

Ever hit a CPU limit while writing a trigger? Asynchronous Apex moves the heavy work into the background so your users...

· 5 min read
Screenshot demonstrating the native LWC datatable tooltip feature displaying record details on a Salesforce tableApex

Create an LWC datatable tooltip with Native Features

Before you build a custom hover component for a Salesforce table, try the native tooltip attribute on...

· 4 min read