The Summer '26 release notes went up on 22 Apr, preview sandboxes began taking the upgrade around 9 May, and Salesforce's release announcement gives 15 Jun as the official release date. Salesforce Ben's release calendar lists the production weekends as 9 May, 5 Jun and 12 Jun, so look up your own instance on Salesforce Trust before you rely on anyone's summary.
- 22 Apr Release notes go up
- Around 9 May Preview sandboxes begin taking the upgrade
- 9 May First production weekend on Salesforce Ben's calendar
- 5 Jun Second production weekend
- 12 Jun Third production weekend
- 15 Jun Official release date in Salesforce's announcement
// weekends per salesforce ben's release calendar. your own instance's date is on salesforce trust.
The headline material, as usual, is agents. Salesforce's top ten opens with Multi-Agent Orchestration and puts Tableau MCP third, and we will get to both. The change that will cost real engineering time sits elsewhere, in the Apex Developer Guide rather than on a keynote slide. From API version 67.0, Apex stops assuming it may see everything. This is the third post in our release series, after the Winter '26 and Spring '26 previews.
Quick poll
Where does most of your org's Apex sit today?
Your answer stays on this page. We do not count or store it.
01 / THE CHANGEFour defaults flip at version 67.0
Salesforce Ben's developer roundup, published the day after the notes, reports that Apex written against API version 67 picks up new security behavior. Salesforce Dictionary's developer summary calls it "The single most consequential default change in years", which is a bold line for a release that also ships agents. We agree with it.
- User mode by default. Queries and DML in a version 67.0 class run in user mode unless the code says otherwise. The running user's object permissions, field-level security and record access now apply. Until now the default was system mode, which skips the object and field checks and leaves record access to the class's sharing keyword.
- With sharing when you said nothing. A version 67.0 class with no sharing keyword now behaves as
with sharinginstead ofwithout sharing. - Triggers run in system mode. Salesforce has confirmed this for triggers on any API version, closing edge cases where sharing rules were being applied inside triggers. It is the one change that does not wait for a version bump.
- WITH SECURITY_ENFORCED is on its way out. Salesforce Ben describes the SOQL clause as deprecated. Salesforce Dictionary's summary says Summer '26 queries no longer support it. Plan as if it is gone.
The direction is right. Salesforce has told developers to respect the running user's access for a decade, and a default that quietly ignored it was never going to last. What makes this one awkward is that nothing in the code changes. The same query, in the same class, returns different results depending on a number in a metadata file.
- Class on API 66.0 Queries and DML: system mode
No sharing keyword: without sharing
WITH SECURITY_ENFORCED: supported - Class on API 67.0 Queries and DML: user mode
No sharing keyword: with sharing
WITH SECURITY_ENFORCED: deprecated - Trigger, any version Queries and DML: system mode
Applies to: every version
Version bump needed: no
// same query, three behaviors. the api version in the metadata file picks one.
02 / WHAT BREAKSWhere this bites
Apart from triggers, a class that stays on its current version keeps its current behavior. The damage arrives later, on the day somebody bumps a class to 67.0 to use a new feature, and the change passes review because the diff is one line long.
Expect two kinds of failure. The loud kind is a permissions error: a query reads a field the user cannot see, or a DML statement writes to an object the user cannot edit, and the transaction stops. Salesforce Dictionary expects INSUFFICIENT_ACCESS errors from shared utility classes that leaned on system mode. Those are irritating, and they are also the easy ones, because a user reports them within the hour.
The quiet kind is worse. Record access now applies too, so a query that used to see every matching row returns only the rows this user can see. No error, no log line. A rollup comes out short, a duplicate check misses the duplicate, a scheduled job processes fewer records and reports success. We would look for this first in reporting and reconciliation code, because that code was usually written by someone who assumed they could see the whole table.
- Loud: a permissions error A query reads a field the user cannot see, or DML writes to an object they cannot edit, and the transaction stops. A user reports it within the hour.
- Quiet: fewer rows Record access now applies, so the query returns only the rows this user can see. No error, no log line. A rollup comes out short and a scheduled job still reports success.
// look for the quiet kind first in reporting and reconciliation code.
The usual suspects
- Utility and selector classes with no sharing keyword that everything else calls.
- Code that runs for Experience Cloud guest and community users, who have far less access than the developer who tested it.
- Integration endpoints that run as an integration user on a stripped-down profile.
- Test classes that run as the admin who wrote them. They will pass, and they will keep passing all the way to production.
- Trigger handlers. The trigger itself runs in system mode, but we would not assume that carries into a version 67.0 handler class it calls. Test it in the preview sandbox rather than reasoning about it.
Pop quiz
After Summer '26, which of these runs in system mode on every API version?
03 / PREPAREGetting ready without a big-bang rewrite
The good news is that you decide when this happens, one class at a time. Use that. The order we would follow:
- Inventory versions. Pull the API version of every Apex class and trigger, oldest first. In most orgs the spread is wide, and the oldest classes are the ones nobody wants to touch.
- Write the sharing keyword on every class. Pick
with sharing,without sharingorinherited sharingon purpose. Once every class states its intent, the second default in the list stops mattering. - Find every WITH SECURITY_ENFORCED. A text search across the repository is enough. Replace each one with
WITH USER_MODE, orWITH SYSTEM_MODEwhere the query really must see everything, and leave a comment saying why. - Choose user or system mode per operation, in the code. Salesforce Ben reads the change as a push toward stating user mode or system mode explicitly in your queries. That is the habit worth building, because a stated choice survives the next default change.
- Test as a real user. Wrap the important test methods in
System.runAswith a user on your most restricted profile. If your suite has never done this, it will find things before version 67.0 does. - Bump in the preview sandbox, one class at a time. Run the full suite after each bump, then have a few real users click through the affected pages before the change moves on.
Do not run a find-and-replace from WITH SECURITY_ENFORCED to WITH USER_MODE and call it done. User mode applies record access as well as field and object permissions, so the replacement can also change how many rows come back. Review each one as a behavior change, because that is what it is.
Self check
How ready is your code for API 67.0? Tick what is true today.
04 / THE RESTEverything else in the box
The short version of the rest, from Salesforce's announcement and the two developer summaries linked above.
- Agents in teams. Multi-Agent Orchestration lets Agentforce agents share context and work through one workflow together. Tableau MCP lets AI agents query Tableau's analytics engine directly through the Model Context Protocol (MCP), the open standard for connecting AI models to outside tools. Both deserve a pilot. Neither deserves a reorganization yet.
- Apex that reads like this decade. Multiline strings with triple quotes, and string templates through
String.template. Salesforce Ben demonstrates them with a short poem in a multiline string. After years of gluing SOQL together across six lines, we would have written one too. - Elastic async limits. Queueable and future jobs get an elastic limit sized against the org's daily allowance, according to Salesforce Dictionary. Helpful on a heavy batch night. No excuse to stop designing for limits.
- A Dev channel for sandboxes. Through Salesforce Release Manager, a sandbox can opt into pilot and beta features weeks before the standard channel gets them. Put one sandbox on it, never your main test environment.
- LWC tooling. Components move to API 67.0, with Live Preview and State Managers both generally available.
- Salesforce Functions is no longer available for purchase or renewal. If you still run Functions, the debate is over.
05 / CALENDARRetirements for the calendar
Every release also carries slow deadlines, and Summer '26 adds a few. From Salesforce Dictionary's summary of the notes:
- The OAuth 2.0 username-password flow for connected apps is being retired in Winter '27. Integrations that trade a username and password for a token need the client credentials or web server flow before then.
- The SOAP API
login()call for API versions 31.0 to 64.0 is scheduled to retire in Summer '27. - Salesforce to Salesforce is scheduled for retirement in Spring '27.
- The Salesforce-managed X (formerly Twitter) authentication provider retires in this release.
- A release update that stops managed packages from running anonymous Apex with a session ID from
UserInfo.getSessionId()is scheduled to enforce in Summer '27.
- Summer '26 The Salesforce-managed X authentication provider retires
- Winter '27 OAuth 2.0 username-password flow for connected apps retires
- Spring '27 Salesforce to Salesforce is scheduled for retirement
- Summer '27 SOAP API
login()for API versions 31.0 to 64.0 is scheduled to retire - Summer '27 A release update that stops managed packages running anonymous Apex with a session ID from
UserInfo.getSessionId()is scheduled to enforce
// source: salesforce dictionary's summary of the summer '26 notes.
The username-password item has the shortest fuse. Winter '27 is the next release, and the middleware that logs in with a password is usually the one nobody documented.
06 / THIS WEEKWhat we would do this week
- Confirm your production date on Salesforce Trust, and check that the sandbox you test in is on a preview instance.
- Export the API version of every class and trigger, sorted oldest first.
- Search the repository for WITH SECURITY_ENFORCED and for classes with no sharing keyword. Two lists, each with a named owner.
- Pick three busy classes, bump them to 67.0 in the preview sandbox, and run their tests as a restricted user.
- List every integration that logs in with a username and password. That list is due before Winter '27.
Summer '26 puts agents in the keynote. Expect Apex to own the retrospectives. The version bump is a one-line diff. Review it as if it were a hundred.