You need to sign in to do that
Don't have an account?
Allen2
help me to write a trigger for one scenario...
We have two lookup field on user object manager and oManager... so the scenario is for the oManager != null, if oManager is not changed and not equal to manager then it should update the manager field as whatever value we are enterling in the lookup field oManager
and
if anytime updating the manager name then it should auto reflect to oManager also.......
please help me to write the trigger for this scenario...
I was always confused to write the trigger... but I think it should be before insert and before update....
and
if anytime updating the manager name then it should auto reflect to oManager also.......
please help me to write the trigger for this scenario...
I was always confused to write the trigger... but I think it should be before insert and before update....
//Sample Code, you might need to update the same with proper API names for the fields that you intend to use