Skip to main content
AND( 

 

$Profile.Name <> 'System Administrator' , 

 

OR( 

 

ISPICKVAL(Status,'Closed'), 

 

ISPICKVAL(Status,'Open'), 

 

ISPICKVAL(Status,'Pending - Internal'), 

 

ISPICKVAL(Status,'Pending - Case Creator') 

 

))
8 respuestas
  1. 3 ene 2018, 16:39
    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

     

    Hello Serena, You can do that, but you have to create a

     

    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

     

    User-added image

     

    User-added image

     

    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') 

    )

    )

     

     
0/9000