Skip to main content
added 20 characters in body
Source Link
sfdcfox
  • 501.6k
  • 21
  • 473
  • 828

I have these particular VR and I needed to open new question because has a specific problems.

There are both (in Account object):

  1. Check that a field is not empty in an specific State:

AND(

ISPICKVAL(Status__c , "Incubator"),

ISBLANK(Field01__c))

AND(

ISPICKVAL(Status__c , "Incubator"),

ISBLANK(Field01__c))
  1. Check that user has special permissions:
AND(!$Setup.Bypass__c.ValidationRule__c,

!$Permission.IntegrationPermissions,

$User.Username != $Label.PERMISSION_USER)

So, I would like to have both VR in just one, checking that IF ONE OF THESE TWO CASES happens. Is like:

OR( VALIDATION RULE 1, VALIDATION RULE 2)

I tried but I had sintax mistakes. Any idea?

I have these particular VR and I needed to open new question because has a specific problems.

There are both (in Account object):

  1. Check that a field is not empty in an specific State:

AND(

ISPICKVAL(Status__c , "Incubator"),

ISBLANK(Field01__c))

  1. Check that user has special permissions:
AND(!$Setup.Bypass__c.ValidationRule__c,

!$Permission.IntegrationPermissions,

$User.Username != $Label.PERMISSION_USER)

So, I would like to have both VR in just one, checking that IF ONE OF THESE TWO CASES happens. Is like:

OR( VALIDATION RULE 1, VALIDATION RULE 2)

I tried but I had sintax mistakes. Any idea?

I have these particular VR and I needed to open new question because has a specific problems.

There are both (in Account object):

  1. Check that a field is not empty in an specific State:
AND(

ISPICKVAL(Status__c , "Incubator"),

ISBLANK(Field01__c))
  1. Check that user has special permissions:
AND(!$Setup.Bypass__c.ValidationRule__c,

!$Permission.IntegrationPermissions,

$User.Username != $Label.PERMISSION_USER)

So, I would like to have both VR in just one, checking that IF ONE OF THESE TWO CASES happens. Is like:

OR( VALIDATION RULE 1, VALIDATION RULE 2)

I tried but I had sintax mistakes. Any idea?

Source Link
CPS
  • 365
  • 3
  • 9
  • 25

Help with this Validation Rule

I have these particular VR and I needed to open new question because has a specific problems.

There are both (in Account object):

  1. Check that a field is not empty in an specific State:

AND(

ISPICKVAL(Status__c , "Incubator"),

ISBLANK(Field01__c))

  1. Check that user has special permissions:
AND(!$Setup.Bypass__c.ValidationRule__c,

!$Permission.IntegrationPermissions,

$User.Username != $Label.PERMISSION_USER)

So, I would like to have both VR in just one, checking that IF ONE OF THESE TWO CASES happens. Is like:

OR( VALIDATION RULE 1, VALIDATION RULE 2)

I tried but I had sintax mistakes. Any idea?