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

Apex articles

Page 5 of 9 · 108 articles

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 with no email, which makes it the...

· 9 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
Diagram illustrating how the Salesforce @ReadOnly annotation increases Apex query row limits for large data volumesApex

Optimize Salesforce query performance with @ReadOnly

Tired of hitting that 50,001-row limit in Apex? Here is how the @ReadOnly annotation bumps your query capacity up to a...

· 5 min read
A visual representation of Apex Hammer tool simulating heavy user load on a Salesforce application interface.Apex

What is Apex Hammer? Load Testing for Salesforce Developers

Wondering whether your code will break under pressure? Apex Hammer helps you simulate heavy traffic and find hidden...

· 4 min read
Diagram illustrating the execution order of a Salesforce Apex Trigger event in developmentApex

Salesforce Apex Trigger - What It Is and When to Use It

Wondering when to stop building in Flow and start writing code? This post covers what a Salesforce Apex Trigger...

· 5 min read
Diagram comparing the core differences between SOAP and REST APIs for Salesforce developmentApex

SOAP vs REST - Key Differences for Salesforce Developers

I get asked about SOAP vs REST all the time when we're mapping out new integrations. Here is how a strict protocol and...

· 5 min read
Diagram illustrating the architecture and flow of the Salesforce Universal Logging Framework in Apex development.Apex

Salesforce Universal Logging Framework — Implementation & Best Practices | Salesforce Logging Framework

· 5 min read
A developer writing complex Apex code focusing on Apex Trigger Interview Questions for a technical role.Apex

Apex Trigger Interview Questions and Real Code Scenarios

Prepping for a Salesforce technical interview? These Apex Trigger Interview Questions run from before vs after logic...

· 6 min read
Diagram illustrating data flow for a Salesforce Remote Action call in a Visualforce context.Apex

Guide to Salesforce Remote Action and JavaScript Remoting

LWC is the new standard, but many of us still work with Visualforce. This post explains how Salesforce Remote Action...

· 5 min read
A developer looking thoughtfully at a screen showing Apex code snippets during an interview.Apex

Salesforce Apex interview questions - Core essentials guide

I've been on both sides of the interview desk, and most technical rounds come down to how you handle the platform's...

· 5 min read
Diagram illustrating the structure and benefits of a clean Salesforce trigger handler implementation.Apex

Salesforce trigger handler: Best practices for Apex code

If you have ever dealt with a messy Salesforce org, you know how fast code gets out of hand. Here is the case for a...

· 5 min read