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
Kumar5Kumar5 

Need Help on Validation rule

Hi Team,

The  below validation rule is working for one user . but i want to add one more user can you pleease help me with that

$User.Id != '005300000020erI' 
&& 
ISNEW() 
&& 
(RecordTypeId = $Setup.ObjectRecordTypeIds__c.Case__RecordType__c 
&& 
ISBLANK(TEXT(status__c)) 
)

Thanks,
Kumar
Best Answer chosen by Kumar5
Ishwar ShindeIshwar Shinde
Hi Kumar,

Use && instead of || operation.
You validation rule will get skipped for both user then.

Thanks,
Ishwar

Please mark this as best ans if it helps.

All Answers

Kumar5Kumar5
($User.Id != '005300000020erI'  || $User.Id != '005300000020nBm)
&& 
ISNEW() 
&& 
(RecordTypeId = $Setup.ObjectRecordTypeIds__c.Case__RecordType__c 
&& 
ISBLANK(TEXT(status__c)) 
)

tried with above but it is not working
Ishwar ShindeIshwar Shinde
Hi Kumar,

Use && instead of || operation.
You validation rule will get skipped for both user then.

Thanks,
Ishwar

Please mark this as best ans if it helps.
This was selected as the best answer