I am looking to create a validation rule that prevents a user with the profile "Account Executive" or "Sales Manager" from changing the ownership of a prospect account that is owned by anyone other than the default "Sales Operations" user (ID 0054s0000035WiI).

The VR below passes the syntax check but throws an error whenever the user tries to change the account owner on accounts owned by ANY user.

        $Profile.Name = 'Account Executive',
        $Profile.Name = 'Sales Manager'
    OwnerId <> '0054s0000035WiI',
    ISPICKVAL(Type, 'Prospect'),

Any guidance would be greatly appreciated!

1 Answer 1


You need to use PRIORVALUE(OwnerId) <> '0054s0000035WiI'. Your rule is currently checking the final value of the owner ID. It's no longer the Sales Op user since the current user has just changed the owner.

  • It works!! Thank you!!!! I had tried PRIORVALUE(OwnerId) != '0054s0000035WiI' and that hadn't worked. Commented Dec 9, 2022 at 17:38
  • @TriciaFrawley <> and != in formulas do the exact same thing, so if one didn't work then there was likely a typo elsewhere ("smart" quotes instead of single/double quotes, missing a character from the Id, etc...)
    – Derek F
    Commented Dec 11, 2022 at 14:09

You must log in to answer this question.

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