Skip to main content
deleted 51 characters in body; edited tags
Source Link
Adrian Larson
  • 151.3k
  • 38
  • 247
  • 431

I have a interesting problem that I cannot figure out. I'veI've created a Lead validation ruleValidation Rule on Lead that is used to ensure users with profile names Direct Sale OR New Contract when the users login with those profile my validation rule should fire otherwise without those profile ignore the validation rules.

withoutWithout implementing profile logic the below validation works fine

NOT(OR(ISPICKVAL(Tech__c, 'IT'),  ISPICKVAL(Tech__c, 'RD'))) == true

theThe above validations check to see the Tech__c must be IT or RD and i have tested and its working

Problem:

Now when I try to add profile logic nothing works, here is what I have done so far with no success.

AND
(
 NOT(OR( 
         ISPICKVAL( Tech__c, "IT "),
         ISPICKVAL( Tech__c,"RD")
      )),
  AND(
         $Profile.Name == "Direct Sale", 
         $Profile.Name == "New Contract"
        )
)

I do not get any error and I able to save the validation rule and when I try to login as profile Direct Sale and the validation does not fire.

What I'm doing wrong here?

I have a interesting problem that I cannot figure out. I've created a Lead validation rule that is used to ensure users with profile names Direct Sale OR New Contract when the users login with those profile my validation rule should fire otherwise without those profile ignore the validation rules.

without implementing profile logic the below validation works fine

NOT(OR(ISPICKVAL(Tech__c, 'IT'),  ISPICKVAL(Tech__c, 'RD'))) == true

the above validations check to see the Tech__c must be IT or RD and i have tested and its working

Problem:

Now when I try to add profile logic nothing works, here is what I have done so far with no success.

AND
(
 NOT(OR( 
         ISPICKVAL( Tech__c, "IT "),
         ISPICKVAL( Tech__c,"RD")
      )),
  AND(
         $Profile.Name == "Direct Sale", 
         $Profile.Name == "New Contract"
        )
)

I do not get any error and I able to save the validation rule and when I try to login as profile Direct Sale and the validation does not fire.

What I'm doing wrong here?

I've created a Validation Rule on Lead that is used to ensure users with profile names Direct Sale OR New Contract when the users login with those profile my validation rule should fire otherwise without those profile ignore the validation rules.

Without implementing profile logic the below validation works fine

NOT(OR(ISPICKVAL(Tech__c, 'IT'),  ISPICKVAL(Tech__c, 'RD'))) == true

The above validations check to see the Tech__c must be IT or RD and i have tested and its working

Problem:

Now when I try to add profile logic nothing works, here is what I have done so far with no success.

AND
(
 NOT(OR( 
         ISPICKVAL( Tech__c, "IT "),
         ISPICKVAL( Tech__c,"RD")
      )),
  AND(
         $Profile.Name == "Direct Sale", 
         $Profile.Name == "New Contract"
        )
)

I do not get any error and I able to save the validation rule and when I try to login as profile Direct Sale and the validation does not fire.

What I'm doing wrong here?

corrected Tech__c
Source Link
Nick
  • 7.2k
  • 27
  • 147
  • 286

I have a interesting problem that I cannot figure out. I've created a Lead validation rule that is used to ensure users with profile names Direct Sale OR New Contract when the users login with those profile my validation rule should fire otherwise without those profile ignore the validation rules.

without implementing profile logic the below validation works fine

NOT(OR(ISPICKVAL(Tech__c, 'IT'),  ISPICKVAL(IndustryTech__c, 'RD'))) == true

the above validations check to see the Tech__c must be IT or RD and i have tested and its working

Problem:

Now when I try to add profile logic nothing works, here is what I have done so far with no success.

AND
(
 NOT(OR( 
         ISPICKVAL( Tech__c, "IT "),
         ISPICKVAL( Tech__c,"RD")
      )),
  AND(
         $Profile.Name == "Direct Sale", 
         $Profile.Name == "New Contract"
        )
)

I do not get any error and I able to save the validation rule and when I try to login as profile Direct Sale and the validation does not fire.

What I'm doing wrong here?

I have a interesting problem that I cannot figure out. I've created a Lead validation rule that is used to ensure users with profile names Direct Sale OR New Contract when the users login with those profile my validation rule should fire otherwise without those profile ignore the validation rules.

without implementing profile logic the below validation works fine

NOT(OR(ISPICKVAL(Tech__c, 'IT'),  ISPICKVAL(Industry, 'RD'))) == true

the above validations check to see the Tech__c must be IT or RD and i have tested and its working

Problem:

Now when I try to add profile logic nothing works, here is what I have done so far with no success.

AND
(
 NOT(OR( 
         ISPICKVAL( Tech__c, "IT "),
         ISPICKVAL( Tech__c,"RD")
      )),
  AND(
         $Profile.Name == "Direct Sale", 
         $Profile.Name == "New Contract"
        )
)

I do not get any error and I able to save the validation rule and when I try to login as profile Direct Sale and the validation does not fire.

What I'm doing wrong here?

I have a interesting problem that I cannot figure out. I've created a Lead validation rule that is used to ensure users with profile names Direct Sale OR New Contract when the users login with those profile my validation rule should fire otherwise without those profile ignore the validation rules.

without implementing profile logic the below validation works fine

NOT(OR(ISPICKVAL(Tech__c, 'IT'),  ISPICKVAL(Tech__c, 'RD'))) == true

the above validations check to see the Tech__c must be IT or RD and i have tested and its working

Problem:

Now when I try to add profile logic nothing works, here is what I have done so far with no success.

AND
(
 NOT(OR( 
         ISPICKVAL( Tech__c, "IT "),
         ISPICKVAL( Tech__c,"RD")
      )),
  AND(
         $Profile.Name == "Direct Sale", 
         $Profile.Name == "New Contract"
        )
)

I do not get any error and I able to save the validation rule and when I try to login as profile Direct Sale and the validation does not fire.

What I'm doing wrong here?

Source Link
Nick
  • 7.2k
  • 27
  • 147
  • 286

Validation Rule with multiple profiles

I have a interesting problem that I cannot figure out. I've created a Lead validation rule that is used to ensure users with profile names Direct Sale OR New Contract when the users login with those profile my validation rule should fire otherwise without those profile ignore the validation rules.

without implementing profile logic the below validation works fine

NOT(OR(ISPICKVAL(Tech__c, 'IT'),  ISPICKVAL(Industry, 'RD'))) == true

the above validations check to see the Tech__c must be IT or RD and i have tested and its working

Problem:

Now when I try to add profile logic nothing works, here is what I have done so far with no success.

AND
(
 NOT(OR( 
         ISPICKVAL( Tech__c, "IT "),
         ISPICKVAL( Tech__c,"RD")
      )),
  AND(
         $Profile.Name == "Direct Sale", 
         $Profile.Name == "New Contract"
        )
)

I do not get any error and I able to save the validation rule and when I try to login as profile Direct Sale and the validation does not fire.

What I'm doing wrong here?