
$Profile.Name <> 'System Administrator' ,
OR(
ISPICKVAL(Status,'Closed'),
ISPICKVAL(Status,'Open'),
ISPICKVAL(Status,'Pending - Internal'),
ISPICKVAL(Status,'Pending - Case Creator')
))
8 respuestas
Hello Serena,
You can do that, but you have to create a "Custom Permission" and add that permission under your Permission set. We cannot reference permission sets in validation rules, so we have to take this approach.
Step 1:
Let us create a Custom permission :
Setup >> Custom Permissions >> "New" >> Name it as "Bypass Validation Rules" >> Save
Step 2:
Add the new Custom Permission to your permission set
Setup >> Permission Sets>> Opne your permission set >> Under "Custom Permissions" section >> Add the new custom permission >> Save
Step 3:
Then you can change your validation rule like this ( we refer to the custom permission- Bypass_Validation_Rules)
AND(
$Permission.Bypass_Validation_Rules,
OR(
ISPICKVAL(Status,'Closed'),
ISPICKVAL(Status,'Open'),
ISPICKVAL(Status,'Pending - Internal'),
ISPICKVAL(Status,'Pending - Case Creator')
)
)