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
Connor ReillyConnor Reilly 

Allow Lead Transfer Only if Current Owner is Certain User

I have a requirement where our Account Executives should only be able to transfer leads if:

a) they are the current owner
b) the current owner is "Marketing"

Their profile has tranfer abilities.
Here is the validation rule, but it is currently not working as expected. I'd appreciate any help. 
 

AND(ISCHANGED( OwnerId ),
PRIORVALUE(OwnerId) <> Owner:User.Id || Owner:User.Alias <> 'mkting',
OR($Profile.Name = 'Standard Fast Radius User', $Profile.Name = 'SDR'))
Maharajan CMaharajan C
Hi Conor,

If my understanding is not wrong try the below formula:

AND(ISCHANGED( OwnerId ),
OR(AND(PRIORVALUE(OwnerId) <> $User.Id, $Profile.Name = 'Account Executives') ,
Owner:User.Alias <> 'mkting'),
OR($Profile.Name = 'Standard Fast Radius User', $Profile.Name = 'SDR')
)

Thanks,
Maharajan.C
Connor ReillyConnor Reilly

Thanks Maharajan. 

It seems to still not allow our AEs to transfer accounts owned by Marketing (alias = mkting). Also, the current owner of the lead cannot move the lead to someone else, with this rule in place. Any thoughts?