
If I can get this code, I will attach it to a workflow that looks at the first login for a user. The trigger will run and populate the manager field with the person found in the role directly above the role of the running user in the role hierarchy if the manager field is blank. I can handle the development of the workflow. I am struggling with creating the APEX code. In my role structure, we have a manager role that is above each rep role. The manager role only contains 1 user.
5 respostas
I will suggest you to post this question to developer board for the quick response. This community is focused on configuration and design questions. Programming questions are best to post in one of the developer forums for a quick response here
https://developer.salesforce.com/forums/#!/feedtype=RECENT&criteria=ALLQUESTIONS
http://salesforce.stackexchange.com