Skip to main content
added 103 characters in body
Source Link
Vamsi Krishna Gosu
  • 10.5k
  • 5
  • 33
  • 50

I have the following validation rule ;

OR( 
    AND( 
       Upper(MailingCountry) <> 'UK',     
       NOT(ISBLANK(TEXT(UK_Email_Consent__c)))
    ), 
    AND(
       Upper(MailingCountry) = 'UK',  
       ISBLANK(TEXT(UK_Email_Consent__c))
    )
)

AND(Upper(MailingCountry) = 'UK', ISBLANK(TEXT(UK_Email_Consent__c))))

I know to exclude system admins I need to include the following line

$Profile.Name <> "System Administrator")

In the validation rule above where do I add profile <> system admin

Looking forward to your help

many thanks

I have the following validation rule ;

OR(AND( Upper(MailingCountry) <> 'UK', NOT(ISBLANK(TEXT(UK_Email_Consent__c)))), 

AND(Upper(MailingCountry) = 'UK', ISBLANK(TEXT(UK_Email_Consent__c))))

I know to exclude system admins I need to include the following line

$Profile.Name <> "System Administrator")

In the validation rule above where do I add profile <> system admin

Looking forward to your help

many thanks

I have the following validation rule ;

OR( 
    AND( 
       Upper(MailingCountry) <> 'UK',     
       NOT(ISBLANK(TEXT(UK_Email_Consent__c)))
    ), 
    AND(
       Upper(MailingCountry) = 'UK',  
       ISBLANK(TEXT(UK_Email_Consent__c))
    )
)

I know to exclude system admins I need to include the following line

$Profile.Name <> "System Administrator"

In the validation rule above where do I add profile <> system admin

Looking forward to your help

many thanks

Source Link
masond3
  • 21
  • 1
  • 2

Excluding System admin from this validation rule

I have the following validation rule ;

OR(AND( Upper(MailingCountry) <> 'UK', NOT(ISBLANK(TEXT(UK_Email_Consent__c)))), 

AND(Upper(MailingCountry) = 'UK', ISBLANK(TEXT(UK_Email_Consent__c))))

I know to exclude system admins I need to include the following line

$Profile.Name <> "System Administrator")

In the validation rule above where do I add profile <> system admin

Looking forward to your help

many thanks