Newer Version Available
Test and Respond to the New Order Save Behavior
To ensure the expected behavior, you must test the Enable New Order Save Behavior release update. Starting in Winter ’21, if a subscriber org relies on a different order save behavior than their installed packages, the installed packages sometimes don’t work, and package upgrades or new package installations are blocked.
After the Enable New Order Save Behavior release update is enabled, Salesforce evaluates and runs these customizations whenever an update to an order item record changes the parent order record.
- Order and order item validation rules
- Order and order item Apex triggers and classes
- Order and order item workflow rules
- Order and order item flows and processes
After you verify that your package works with the new order save behavior and that all your packages associated with your Dev Hub org work with the new order save behavior, you can either enable the release update in your Dev Hub org or wait for it to be auto-enabled in Summer ’22. We recommend supporting both the new and old order save behavior during the Release Update window.
The scenarios in the table take effect in Winter ’21 and continue through the release update window in Summer ’22.
| Package Uses | Subscriber Org Has Enabled New Order Save Behavior | Subscriber Org Has Enabled Old Order Save Behavior |
|---|---|---|
| New Order Save Behavior | SUCCEED Package upgrades and installations of major and minor package versions succeed. All package types succeed in this condition. FAIL
|
FAIL If the subscriber org and the package are specifying different order save behaviors, package upgrades and installations are blocked. All package types fail in this condition. |
| Old Order Save Behavior | FAIL If the subscriber org and the package are specifying different order save behaviors, package upgrades and installations are blocked. All package types fail in this condition. |
SUCCEED New package installations and major, minor, and patch upgrades succeed. All package types succeed in this condition. |
| Both New and Old Order Save Behavior | SUCCEED New package installations of major and minor package version upgrades succeed. |
SUCCEED New package installations of major and minor package version upgrades succeed. |
Test Unmanaged and First-Generation Managed Packages
- From Setup, in the Quick Find box, enter Release Updates, and then select Release Updates. Locate the Enable New Order Save Behavior tile, and select Enable Test Run.
- Test the impact of the new behavior when an order or order item is edited. Review any
custom application logic such as validation rules, Apex triggers and classes, workflow
rules, flows, and processes.
We recommend supporting both the new and old order save behavior during the Release Update window.
- To indicate that your package is compatible with both new and old order save conditions, from Setup, in the Quick Find box, enter Package. Select the package that you tested and select Upload.
- Locate the Package Requirements section and disable New Order Save
Behavior.
When this setting is disabled and the release update is enabled, subscriber orgs using either the new or old order save behavior can install your package.
Test Unlocked and Second-Generation Managed Packages
- After creating a scratch org, enable the Release Update in it. From Setup, in the Quick Find box, enter Release Updates, and then select Release Updates. Locate the Enable New Order Save Behavior tile, and select Enable Test Run.
- Test the impact of the new behavior when an order or order item is edited. Review any custom application logic such as validation rules, Apex triggers and classes, workflow rules, flows, and processes.
When you’re ready to create a package version, specify the order save behavior in the definition file.
| To Specify | Set Features in Scratch Org Definition File To |
|---|---|
| Old Order Save Behavior |
|
| New Order Save Behavior |
|
| New and Old Order Save Behavior |
|