0

Current validation rule which stops account ownership being changed unless you have a system admin profile. I wish to allow account ownership to change if the account is in the users name...any suggestions would be much appreciated...

AND( not(ISBLANK(PRIORVALUE( OwnerId ))), ISCHANGED(OwnerId ), $Profile.Name <> "System Administrator")

4
  • try with below validation rule. AND( not(ISBLANK(PRIORVALUE( OwnerId ))), ISCHANGED(OwnerId ), OR($Profile.Name <> "System Administrator", $User.Id <> OwnerId)) Commented Oct 26, 2022 at 9:31
  • thank you Ankaiah this works :)
    – Tim
    Commented Oct 26, 2022 at 10:27
  • Thanks for the update. I am posting this answer. Commented Oct 26, 2022 at 13:58
  • Are you trying to allow people to take ownership or give it away?
    – Adrian Larson
    Commented Oct 26, 2022 at 14:06

1 Answer 1

0

Try with below validation rule.

AND( not(ISBLANK(PRIORVALUE( OwnerId ))), ISCHANGED(OwnerId ), OR($Profile.Name <> "System Administrator", $User.Id <> OwnerId))

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .