I have two validation rules
- For lead owner change to 'user'
- For lead owner change to 'queue'
Here, user validation rule is firing, even though I am changing the owner to queue. How to make system understand queue/user change?
User Validation Rule:
AND(
ISCHANGED( OwnerId ) ,
$Profile.Name == 'Partner Community for GA Admin',
Owner:User.Contact.Account.Parent.Name <> $User.CompanyName
)
Queue Validation Rule:
AND(
ISCHANGED( OwnerId ) ,
$Profile.Name == 'Partner Community for GA Admin',
NOT(
CONTAINS(Owner:Queue.QueueName, "Inside")
)
)
Owner:User.Contact.Account.Parent.Name <> $User.CompanyName
the left hand side of this expression is NULL which is not equal to$User.CompanyName
hence first VR fires.