Skip to main content
added 30 characters in body
Source Link
Adrian Larson
  • 151.3k
  • 38
  • 247
  • 431

I have two validation rules

  1. For lead owner change to 'user'
  2. 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")
    )
)

)

I have two validation rules

  1. For lead owner change to 'user'
  2. 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"))

)

I have two validation rules

  1. For lead owner change to 'user'
  2. 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")
    )
)
Source Link

Lead Owner Change to User/queue are firing validation rules incorrectly

I have two validation rules

  1. For lead owner change to 'user'
  2. 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"))

)