function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
YOANA PopovaYOANA Popova 

validation rule for field not to eb changed when the Quote status is Closed Won

Good day, 
I have to create a validation rule that will prevent all users for changing of the field Account on Quote object when the Quote Status is Closed won. 
Here is my validation rule, and it is working as expected: 
AND (
ISPICKVAL( SBQQ__Status__c ,"Closed Won") ,
ISCHANGED( SBQQ__Account__c ) )
The additional condition is bypass the validation rule for Admin profile (without Bypass validation flag). Could somebody support me in this part?
Best Answer chosen by YOANA Popova
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Yoana,

Can you try the validation as below.
 
AND (
    $Profile.Name <> "System Administrator",
ISPICKVAL( SBQQ__Status__c ,"Closed Won") ,
ISCHANGED( SBQQ__Account__c ) )

If this solution helps, Please mark it as best answer.

Thanks,
​​​​​​​