Update Apex Code and Flows for Changed Sharing Recalculation Behavior (Release Update)

Update Apex Code and Flows for Changed Sharing Recalculation Behavior (Release Update)

To optimize performance after large-scale updates to groups or roles, Salesforce now performs some sharing recalculations asynchronously. If Apex code and flows require that share records be updated immediately, the code and flows can break when this release update is enforced. Update Apex classes, tests, triggers, and flows that update group membership or roles if they rely on synchronous sharing recalculation. This update was first available in Spring ’26.

Where: This change applies to Lightning Experience and Salesforce Classic in Professional, Enterprise, Performance, Unlimited, and Developer editions.

When: Salesforce enforces this update in Spring ’27. To get the major release upgrade date for your instance, go to Trust Status, search for your instance, and click the maintenance tab.

How: Review the release update in Setup for information on identifying and fixing your Apex code and flows. Only some Salesforce orgs are affected by this change, so we recommend reviewing the criteria outlined in the first step before starting the remaining testing.