Apex articles
Page 4 of 9 · 106 articles
Mastering the Apex Approval Process for Complex Logic
Standard approval tools are great, but sometimes you need more control. I'm breaking down how to use Apex to handle...
Guide to the Apex Zip Namespace in Salesforce Spring '25
Salesforce finally added a native way to handle zip files without needing AWS or external libraries. I will show you...
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, but it usually...
How to Use Apex Cursors to Stream Large Datasets in LWC
If you are tired of hitting heap limits when loading records into LWC, you need to check out Apex Cursors. They offer a...
8 Practical Agentforce Use Cases for Salesforce Developers
I've been experimenting with Vibe coding and it's a game changer for legacy projects. Here are 8 ways Agentforce...
Calculate Apex Business Hours and Day of Week in Salesforce
Stop letting weekends ruin your lead response reports. I'll show you how to use Apex business hours to filter out the...
Apex vs Flow - When to Use Code Over Salesforce Automation
We've all heard the 'Flow First' mantra, but sometimes you just need the power of code. This post breaks down exactly...
Apex Trigger Upsert - How Many Times Does It Execute?
Ever wondered why your automation runs twice during an upsert? Salesforce actually splits your records into two...
Set Salesforce User Passwords with Apex System.setPassword
Setting up test users manually is a waste of time. I found that using Apex System.setPassword is the fastest way to get...
Asynchronous Apex in Salesforce - When to Use Each Type
Ever hit a CPU limit while writing a trigger? This guide breaks down Asynchronous Apex so you can run heavy tasks in...
Create an LWC datatable tooltip with Native Features
Stop over-engineering custom hover components for your Salesforce tables. I will show you how to use the native LWC...
Optimize Salesforce query performance with @ReadOnly
Tired of hitting that 50,001-row limit in Apex? I'll show you how to use the @ReadOnly annotation to bump your query...