Skip to main content
4 件の回答
  1. 2020年8月24日 5:19
    HI Yeshwanth,

     

    The note to consider on Role is Roles are not acutally a picklist values , these are Record Values, hence each value has ID

     

    Before Triggers On User

     

    =====================

     

    You have to get the Id of the Role

     

    Id UserRoleId =[select UserRoleId from UserRole where Name='CEO'].Id;

     

    then update the User with Role Id

     

    u.RoleId = Id;

     

     
0/9000