You are here:
New Order Save Behavior
New Order Save Behavior allows Salesforce to run custom application logic whenever an order product update causes a change to the parent order. You can activate New Order Save Behavior in Salesforce settings.
In Salesforce Summer ’20 and earlier, Salesforce didn’t run custom application logic when an order product update caused a change to the parent order. For example, a new order product causing a change to the order’s total amount. Users who wanted to enforce custom applications in these scenarios required further customizations for a workaround.
When New Order Save Behavior is active, Salesforce evaluates and runs these customizations whenever an order product update changes the parent order.
- Order and order product validation rules
- Order and order product Apex triggers and classes
- Flows, including processes
We recommend that you activate New Order Save Behavior. If it isn’t activated, order field tracking doesn’t track changes on orders when order products are modified for order amounts.
When you activate New Order Save Behavior, we recommend you test your custom application logic to ensure that it still works as intended.
- Packages don't support the New Order Save Behavior release update by default. Package providers can test and configure their packages to support the new behavior.
- If you use a package involving orders, wait for confirmation from your package provider before enabling the release update.
- You can install packages that support the Old Order Save Behavior on subscriber orgs that have enabled the New Order Save Behavior. However, we recommend you to verify that your package works with the new order save behavior.
- Starting Summer ‘21, Salesforce CPQ and Salesforce Billing support both New Order Save Behavior and Old Order Save Behavior. Installations of Salesforce CPQ and Salesforce Billing Summer ’21 work on subscriber orgs regardless of the subscriber org’s order save behavior. If Salesforce CPQ and Billing is installed while the New Order Save Behavior release update is enabled, previous versions of Salesforce CPQ and Billing sometimes don’t work correctly.
- Starting Winter ‘25, the New Order Save Behavior is enabled by default in all new customer orgs. However, you can choose to disable it.
Your order has an Apex Trigger rule that updates the custom field NeedApproval__c to True if the order amount is greater than $10,000.
trigger OrderTrigger on Order (before update) {
for(Order ord : Trigger.new) {
if (ord.TotalAmount > 10000) {
ord.NeedApproval__c = true;
}
}
}
If New Order Save Behavior is active, Salesforce runs the rule whenever you add or edit an order product on the order. If New Order Save Behavior is inactive, Salesforce runs the rule only when you insert or update the order.

