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

Apex articles

Page 6 of 9 · 107 articles

Diagram illustrating how to call Apex from Flow using Invocable Methods for complex automationApex

Call Apex from Flow to Handle Complex Salesforce Logic

Sometimes Flow Builder isn't enough for heavy math or complex logic. Here's how to call Apex classes with Invocable...

· 5 min read
Diagram illustrating the process of setting a Salesforce user password using Apex code for automation.Apex

Salesforce Apex password reset: Set passwords via code

The standard Salesforce welcome email is a slow way to get a test user logged in. Here is how to set credentials...

· 4 min read
A visual comparison chart highlighting the key differences between SOQL vs SOSL query usage in Salesforce Apex.Apex

SOQL vs SOSL - Which Salesforce Query Should You Use?

Picking between SOQL vs SOSL trips up a lot of people early on. Here is how I decide which one to reach for, so your...

· 4 min read
Diagram illustrating the error when a Batch Apex job attempts to call a future methodApex

Batch Apex future method: Why It Fails and How to Fix It

Ever hit that 'Future method cannot be called' error in the middle of a batch job? Salesforce blocks it on purpose, and...

· 4 min read
Diagram illustrating various Salesforce integration patterns for technical interview preparationApex

Salesforce Integration Patterns - Technical Interview Guide

Senior-level interviews go well past how to build a flow. These are the integration patterns you'll actually use in the...

· 6 min read
Diagram illustrating how the Salesforce merge trigger fires multiple times during a record merge operation.Apex

Salesforce merge trigger - How many times does it fire?

Ever wonder why your code runs three times during a single merge? Salesforce has no specific merge context, so it uses...

· 4 min read
A developer reference guide showcasing essential Apex Trigger best practices and syntax, an Apex Trigger Cheat Sheet.Apex

Apex Trigger Cheat Sheet - Master Salesforce Triggers

Tired of hitting SOQL limits and untangling messy triggers? This Apex Trigger Cheat Sheet covers the context variables,...

· 5 min read
Diagram illustrating the process of making an asynchronous callout from an Apex trigger in SalesforceApex

How to make an Apex trigger callout in Salesforce

Ever tried making an API call from a trigger and hit a wall? Triggers are fast, APIs are slow, so the request has to...

· 5 min read
Visual comparison diagram highlighting key differences between JSON vs XML data formats for developers.Apex

JSON vs XML - Key Differences for Salesforce Developers

Deciding between JSON vs XML can be tricky when you are building Salesforce integrations. Here is how the two handle...

· 4 min read
Screenshot of the Salesforce utility bar showing a custom component for creating cases fasterApex

Create Cases Faster with the Salesforce Utility Bar

Tired of agents losing notes while waiting for records to load? Here is how to build a case creation tool in the...

· 4 min read
Diagram showing how to safely call a batch job from an Apex trigger in Salesforce.Apex

Can we call a batch job from Trigger? | Call batch from trigger

· 5 min read
Diagram illustrating the Apex Trigger Best Practices pattern with trigger handler classesApex

Apex Trigger Best Practices for Scalable Salesforce Code

Writing triggers is easy. Writing them so they don't break your org is the hard part. These are the patterns I use to...

· 5 min read