Sub topic 4
Release Updates and enforcement dates
This chapter assumes you can navigate Setup, know the difference between sandbox and production orgs, and have seen Flow, Apex, and Lightning customizations in a working org. It explains what Release Updates are, how enforcement dates work, and how to plan testing before a change becomes mandatory.
What a Release Update is
A Release Update is a Salesforce change that improves security, performance, or behavior, and that could break existing customizations. Salesforce does not apply it silently. It publishes the update, lets you test it, and then enforces it automatically on a stated date.
Release Updates are separate from the regular release notes. A seasonal release brings new features that you choose to adopt. A Release Update changes existing behavior, and it can be enforced in any release or in between releases.
Where to find them
Open Setup and search for Release Updates in Quick Find. The page lists each update with these details:
- The update name and a short description.
- The enforcement date, which is the date Salesforce activates the update for every org.
- The status of the update in your org.
- A link to the documentation and any steps needed to prepare.
Each update has a status. The statuses you will see most are in the table below.
| Status | Meaning |
|---|---|
| Not yet activated | The update is available but off in this org. |
| Activated | The update is on in this org. |
| Enforced | The enforcement date has passed and the update is on for everyone. |
How the enforcement date works
Before the enforcement date, you can usually turn an update on and off. This is the key point. You can Enable Test Run (the label can differ by update) to try the new behavior, and you can turn it off again if something breaks. After the enforcement date, Salesforce turns the update on and you can no longer opt out.
The sequence looks like this:
Dates can move. Salesforce sometimes postpones an enforcement date, so check the Release Updates page again before each release instead of relying on a date you wrote down months ago.
A practical workflow
- Review the list at the start of each release cycle. Do this when the preview window opens, so you have time to react.
- Sort by enforcement date. Work on the earliest dates first.
- Identify the affected customizations. Read each update's description and search your metadata for the feature it names. For example, if an update changes how a certain Apex method behaves, search your code for that method.
- Test in a sandbox first. Activate the update there, then run your Apex tests and walk through key user journeys.
- Fix problems, then activate in production. Activating yourself before the deadline lets you choose the time, such as a quiet period, rather than having it happen on the enforcement date.
- Record the result. Note the update, the test outcome, and the date you activated it, so your readiness checklist stays accurate.
You can run the Apex part of step 4 from the command line:
sf apex run test \
--target-org my-preview-sandbox \
--test-level RunLocalTests \
--result-format human \
--wait 20This runs all local Apex tests and waits up to 20 minutes for results. It gives you a baseline to compare before and after you activate an update.
Common errors
- Testing only in production. Activating an update in production without a sandbox test removes your safety net.
- Assuming the date will move. A postponement is not guaranteed. Plan for the published date.
- Forgetting installed packages. A managed package can depend on the old behavior. Check with the vendor.
- Not telling users. If an update changes what users see, include it in your communication plan.
Exercise
A Release Update has an enforcement date of three weeks after the production upgrade. You have a full-copy sandbox. Describe what you should do and why you should not wait for the enforcement date.
Show answer
Activate the update in the sandbox, run the Apex tests and walk through key user journeys, and fix anything that breaks. Then activate it in production at a time you choose, before the enforcement date. Waiting means Salesforce turns it on automatically with no chance to opt out, so any problem you have not found appears in production at a time you do not control.