You need to sign in to do that
Don't have an account?

Validation Rule Not Working
Hi Guys I need your help with a Validation Rule. It is very urgent.
Here is my Validation Rule
AND(ISCHANGED(OwnerId), Account_Management_Account__c = True, $UserRole.Id <> "00E4000000184OK", $UserRole.Id <> "00E40000000tCwV", $UserRole.Id = "00E40000000tlQS", $User.ProfileId <> "00e40000000oz3O", $User.ProfileId <> "00e30000000cGQI")
I am trying that if Any user try to change the owner and if Account Management Account Checkbox Formula Field is True and if User Role and User Profile are not equal to ******* then give a Validation Error.
I have tried this Validation Rule and it is not working. Account Management Account is Formula Checkbox Field (Is this could be reason?)
Thanks in advance.
Here is my Validation Rule
AND(ISCHANGED(OwnerId), Account_Management_Account__c = True, $UserRole.Id <> "00E4000000184OK", $UserRole.Id <> "00E40000000tCwV", $UserRole.Id = "00E40000000tlQS", $User.ProfileId <> "00e40000000oz3O", $User.ProfileId <> "00e30000000cGQI")
I am trying that if Any user try to change the owner and if Account Management Account Checkbox Formula Field is True and if User Role and User Profile are not equal to ******* then give a Validation Error.
I have tried this Validation Rule and it is not working. Account Management Account is Formula Checkbox Field (Is this could be reason?)
Thanks in advance.
AND(ISCHANGED(OwnerId), PRIORVALUE(Account_Management_Account__c) = True, $UserRole.Id <> "00E40000000tCwV", $UserRole.Id <> "00E40000000tlQS", $UserRole.Id <> "00E4000000184OK", $User.ProfileId <> "00e40000000oz3O", $User.ProfileId <> "00e30000000cGQI")
All Answers
Iterate through your criteria like this - save the validation rule and save a record to verify if it works or not:
AND(ISCHANGED(OwnerId), PRIORVALUE(Account_Management_Account__c) = True, $UserRole.Id <> "00E40000000tCwV", $UserRole.Id <> "00E40000000tlQS", $UserRole.Id <> "00E4000000184OK", $User.ProfileId <> "00e40000000oz3O", $User.ProfileId <> "00e30000000cGQI")