Orders: New Behavior for Saving Orders (Update)

Now it’s easier to run custom application logic on orders. Salesforce evaluates custom application logic when a new order product or edited order product causes a change to the parent order.

Where: This change applies to Salesforce Lightning Experience and Salesforce Classic.

Why: Previously, Salesforce didn’t run custom application logic when an order product update caused a change to the parent order. For example, it didn’t run logic when a new order product caused a change to the order’s total amount. Users who wanted to enforce custom applications in these scenarios required further customizations for a workaround.

How: Go to the Enable New Order Save Behavior release update tile and click Enable Test Run.

When the New Order Save Behavior is active, Salesforce evaluates and runs the following customizations whenever an order product update changes the parent order.

  • Order and order product validation rules
  • Order and order product Apex triggers and classes
  • Order and order product workflow rules
  • Flows, including processes
Important

Important

  • Packages created before Winter ’21 don't support the New Order Save Behavior release update by default. Package providers should 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.
  • Salesforce CPQ and Salesforce Billing don't support the New Order Save Behavior in Winter ’21.
  • Salesforce enforces New Order Save Behavior in all orgs in Summer ’22.