+ Start a Discussion
Chandra Sekhar CH N VChandra Sekhar CH N V 

Validation rule on user object

Need a validation rule on user object to check if a field is not null but can be empty for two specific user records. Tried the below :
 
​IF
(
ISBLANK( WWID__c ),OR(($User.Id <> '<some user ID>'),($User.Id <> '<some user ID>'))
,false)
Shyama B SShyama B S
Hi Chandra,
Can you give this a try? I just reversed the expressions.
IF(OR(($User.Id = '<some user ID>'),($User.Id = '<some user ID>')),false
,(ISBLANK(WWID__c)))

Please let me know if this helped you.

Thanks,
Shyama
Chandra Sekhar CH N VChandra Sekhar CH N V
Hi,

That didn't work as expected. It was throwing error message for the specified user as well.
KaanKaan
AND ( 
ISBLANK (WWID__C),
$User.Id <> 'someuserID' || $User.Id <> 'someuserID'
)


Hi Chandra, 

Above should do the trick :)