Skip to main content

Hi all!

 

I need these 2 profiles to NOT be able to edit these fields and if they try to edit them, I need the error message to pop up, I cant make them read only. I need this VR created. We only work with Profile IDs.

 

This is what I got so far: 

AND(

     OR(

    ISCHANGED(SplitPercentage),

    ISCHANGED( SplitNote),

   $User.ProfileId = '00e4X000001p37i',  

      $User.ProfileId = '00e4X000001p37d',  

))

 

Is showing the error message to those users, but I'm an admin and is also showing the error message to me!! so the VR is not working as expected.

I have tried everything...... please help! what is wrong on this formula?

4 Antworten
  1. 26. Nov. 2024, 09:23

    Hello@Melissa Arce Villalobos,

    • try to use profile name instead of profile Id
    • Make sure field name is correct

    Please try,

    AND(

    OR(

    ISCHANGED(SplitPercentage),

    ISCHANGED( SplitNote)

    ),

    OR(

    $Profile.Name = "Profile1",

    $Profile.Name = "Profile2"

    )

    )