---
schema_version: "1"
id: db7f4c48de4729cc0206f4a045475adec483afbd4dbf55b50c4ae571252787d8
title: Update Apex Code and Flows for Changed Sharing Recalculation Behavior (Release Update)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/release-notes/262-0-0/rn_sharing_apex_recalc_ru.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_sharing_apex_recalc_ru.htm&release=262.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d733e5d4ebbe54d82201da4b9c29ca9e799b22da5a73f72c121438f0adda2116
description: 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.
products:
  - Cross Cloud
release: "262"
---
# 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](https://status.salesforce.com/), 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.

#### See Also

- [_Knowledge Article_: Asynchronous Sharing Recalculation After Group Membership or Role Changes](https://help.salesforce.com/s/articleView?id=005103630&type=1&language=en_US)