Apex articles
108 articles · Backend code
Experience Cloud Guest User Create Records: Use System Mode
Granting Create on the guest profile lets any anonymous caller insert records through the standard createRecord path...
Custom Row Causes on Standard Objects: Fix Lost Apex Shares
Owner changes wipe AccountShare and CaseShare rows that Apex or Flow created under the Manual row cause. Winter '27...
Salesforce LLM Integration in Apex: Record and Field Access
A Named Credential and tight OAuth scopes still let an external model receive fields the running user cannot see. This...
Custom Metadata for Agentforce: One Policy, Every Layer
Keep a business policy in one Custom Metadata Type so formulas, validation rules, before-save Flow, Apex and an...
Apex Sharing to Role and the Spring '27 Recalculation Update
The Update Apex Code and Flows for Changed Sharing Recalculation Behavior release update, enforced in Spring '27, lets...
Salesforce Sharing Model Anti-Patterns: Where Access Breaks
Sharing defects do not fail the build. They show up months later as audit findings and “the manager cannot see it”...
Salesforce Winter '27 Developer Architecture Guide
Winter '27 raises the Apex heap ceilings to 10 MB and 25 MB and adds native live integration tests in scratch orgs....
Salesforce Winter '27 Developer Features: Apex, LWC, AI
Winter '27 raises the Apex heap limits, lets integration tests make real HTTP callouts, and opens LWC templates to...
Einstein Activity Capture: Sync Email Storage Impact
Einstein Activity Capture now turns on 'Sync Email as Activity' for many orgs without asking, and every synced email...
Apex Test User Mode: System.runAs for Permissions
Since API 67.0, Apex tests run in user mode by default, so your tests have to account for user permissions explicitly....
Salesforce Technical Debt: Impact and Solutions for Developers
Technical debt is drowning Salesforce admins and dragging on development velocity. Here is how big the problem actually...
Salesforce Summer '26 Features for Developers
Summer '26 ships a batch of platform changes for developers and admins: a consolidated field access view, permission...