Skip to main content
I am trying to only allow 2 user profiles to update the account type to Customer. I can get my validation rule to work for one profile, but I am not able to figure out the syntax for 2 user profiles.

 

Here is what I have that does work

 

AND( 

 

     ISPICKVAL ( Type, "Customer")  ,

 

     ISCHANGED ( Type ), 

 

      $User.ProfileId <> "00e70000000vZl8" 

 

)

 

I need to also allow profile ID 00e70000000xASj to make this cvhange as well.

 

Any help is much appreciated.
6 réponses
  1. 22 juil. 2015, 16:00

    AND(

    ISPICKVAL ( Type, "Customer") ,

    ISCHANGED ( Type ),

    $User.ProfileId <> "00e70000000vZl8"

    $User.ProfileId <> "00e70000000xASj"

    )

    I would recommend using Profile Names instead of Profile ID's since that makes the formulas/Validation rules more readable to another user or yourself when you come back and want to comprehend what the rule is doing.

     

     
0/9000