function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Paula Jarvis 4Paula Jarvis 4 

Exclude two Account Record Types from a Val Rules

I need to exlude wo Account Record types from similar Account Validation Rules. I have this so far but it does not seem to work. Do I need to move the "exclusion" to within/at the beginning of the Val Rule?

ISCHANGED(Type)
&&
NOT(ISCHANGED( Button_Validate__c ))
&&
NOT(ISCHANGED( Validation_Override1__c ))
&&
NOT(ISCHANGED( Validation_Override__c ))
&&
(ISPICKVAL( Type , "Nurture")
||
ISPICKVAL(Type, "Do Not Contact")
)
&&
(
TEXT( Reason_for_Closing_Prospect__c ) = ""
)
&&
NOT(ISCHANGED( Button_Validate__c ))
&&
NOT(ISCHANGED( Validation_Override1__c ))
&&
NOT(ISCHANGED( Validation_Override__c ))
&&
NOT( ISNEW() ) 
&& $RecordType.Name <> "Third Party,Vendor"
James LoghryJames Loghry
Are "Third Party" and "Vendor" two seperate record types?  If so try something like the following instead:
 
&& NOT(OR($RecordType.Name = 'Third Party',$RecordType.Name = 'Vendor'))



Also, when you post any sort of formula, code, or visualforce on the developer boards, please use the code format (< >) button.  Thanks!