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
Terry_0101Terry_0101 

Simple Validation Rule malfuntion

How to make these profiles exempt from this Validation Ruel?

AND( 
Amount__c > 1, 
ISBLANK(TEXT( type__c )), 
NOT(ISNEW()), 
NOT(OR( 
$Profile.Id<>"00e40000000oRAA", 
$Profile.Id<>"00e4000000132AW", 
)) 
NagaNaga (Salesforce Developers) 
Hi Samantha,


Yes, this might be possible either by calling the user ID or profile in the validation rule:

&& (NOT($User.ProfileId="005A00000015yWV"))

&& (NOT(CONTAINS($Profile.Name,"API"))

Please also try and follow these links

https://developer.salesforce.com/forums/ForumsMain?id=906F00000008x6qIAA

Best Regards
Naga kIran
Terry_0101Terry_0101
So it should look like this?

AND( 
Amount__c > 1, 
ISBLANK(TEXT( type__c )), 
NOT(ISNEW()),
&& (NOT($User.ProfileId="005A00000015yWV"))