Apex articles
Page 6 of 9 · 107 articles
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...
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...
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...
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...
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...
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...
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,...
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...
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...
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...
Can we call a batch job from Trigger? | Call batch from trigger
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...