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

Apex articles

Page 9 of 9 · 108 articles

Diagram illustrating different Salesforce trigger framework patterns for cleaner Apex developmentApex

How to Pick the Right Salesforce Trigger Framework

Messy Apex and triggers firing in the wrong order are usually a pattern problem. Here is how the handler pattern and...

· 5 min read
Diagram illustrating common mistakes developers make when writing Apex triggers in Salesforce developmentApex

Top Mistakes Developers Make in Salesforce Apex Triggers

Non-bulkified code, several triggers on one object, hardcoded IDs and weak error handling are the Apex trigger mistakes...

· 4 min read
Code example showing the usage of the new Apex null coalescing operator in Salesforce development.Apex

Apex Null Coalescing Operator (Spring '24)

Apex's null coalescing operator (??), added in Spring '24: what it returns, how chaining and short-circuiting behave,...

· 3 min read
Diagram illustrating different methods to call Apex methods from a Lightning Web ComponentApex

Efficient Ways to Call Apex Methods from LWC in Salesforce: Pros and Cons

· 3 min read
Recalculate Formula Fields without DML Statement - Salesforce developer tutorialApex

Recalculate Formula Fields without DML Statement

· 2 min read
Diagram illustrating how to trigger assignment rules automatically using Apex code logicApex

Trigger assignment rules from apex

Automatically assign the leads or cases to users or queue using assignment rules when they are inserted via API or...

· 2 min read
Diagram illustrating the syntax and usage of the LIKE keyword within a standard SOQL query structure.Apex

SOQL LIKE & NOT LIKE: Wildcards, Examples & Best Practices

SOQL LIKE and NOT LIKE explained: wildcards (% and _), case sensitivity, escaping, performance gotchas, and the exact...

· 3 min read
Diagram illustrating the key differences between Salesforce WhoId and WhatId relationship fieldsApex

WhatId vs WhoId in Salesforce: What They Mean & When to Use Each

WhatId references non-Person records (Account, Opportunity, Custom Objects). WhoId references people (Lead or Contact)....

· 2 min read
Diagram illustrating the process of writing an Apex test class for a standard Salesforce controllerApex

Test Class for Standard Controller

· 3 min read
Diagram illustrating how to enforce field and object level security checks within Apex code securelyApex

Enforce Field and Object level security in Apex

· 3 min read
Bypass Unit Test Code Coverage - Salesforce developer tutorialApex

Bypass Unit Test Code Coverage

· 3 min read
A screenshot showing Apex code examples for getting the current logged in user ID in Salesforce.Apex

Get logged in user id in Salesforce

· 1 min read