4 risposte
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;