I have an error creating Validation Rule and is strange. Here is the VR:
AND(!$Setup.Bypass__c.ValidationRule__c,
!$Permission.IntegrationPermissions,
$User.Name != $Label.USER_MANAGER,
NOT(ISPICKVAL(Status__c, "Active")))
And... when I check the syntax, I have this response:
Error: Field Name does not exist. Check spelling.
But User has Name field, obviously. So I think I cannot access this field on VR.
Do you know if it is possible?
$User.Name != $Label.USER_MANAGER,
from formula? Otherwise try removing each condition one by one until you know the exact cause.$User.Username != $Label.USER_MANAGER,
it works. But in this case, I would like to control the flow through Name instead Username.