You need to sign in to do that
Don't have an account?
Need to write a VR that prevents a Profile from changing the Account Owner
Hi
I need to restrict a few Profiles from changing the 'Lead Owner' and 'Accout Owner' fields on records that they actually own.
I have managed to build a Lead VR, with some help from SteveMo, that works nicely:
NOT(ISNEW())
&&
AND (( $Profile.Name=='Business Development Manager' ||
$Profile.Name=='Standard User' ||
$Profile.Name=='Read Only' ), ISCHANGED(OwnerId))
This VR allows a New Lead to be created, saved and converted, but stops a Lead being re-assigned by these 3 Profiles after it's created.
But I still haven't been able to write an Account VR that doesn't interfere with a Lead being converted.
Any ideas or advice would be appreciated. Thanks
Hi,
You have to write the similar type of validation on account object to do this. I am considering only one profile i.e. “Standard User” to prevent change the account owner.
Like this:
NOT(ISNEW()) && AND (( $Profile.Name=='Standard User' ), ISCHANGED(OwnerId))
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
All Answers
Hi,
You have to write the similar type of validation on account object to do this. I am considering only one profile i.e. “Standard User” to prevent change the account owner.
Like this:
NOT(ISNEW()) && AND (( $Profile.Name=='Standard User' ), ISCHANGED(OwnerId))
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Yes, works nicely. Thanks.
Could have sworn that when I tested using the same VR in Accounts that it didn't work first time I tried.
Thanks for making me check again. Cheers.