Skip to content
Bug Barometer
All issues
Solution Deployed

Uncategorized

ISCHANGED(Pricebook2Id) returns false in validation rule when adding a Pricebook to an Opportunity in Lightning Experience

Summary

In Lightning Experience, adding a Price Book to an Opportunity which had no Price Book will cause ISCHANGED(Pricebook2Id) to unexpectedly return "false" in validation rules.

This is because currently when a price book is added or changed on an Opportunity in Lightning we make 2 updates to the Opportunity; The first sets Pricebook2Id to null to remove any existing Line Items, while the second updates Pricebook2Id with the selected Price Book. When the Opportunity Pricebook2Id was already null, the update which sets it to null does evaluate validation rules, and ISCHANGED(Pricebook2Id) is false because the old and new values in that update are both null.

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Solution Deployed with 3 reports

    Nov 30, 2026