+ Start a Discussion

How to get email Id of a manager in an object

i need to get the manager id of a user in an object.


I have created an email field in an object. i want to get the manager id of a logged in user. How to get this using triggers?


I want to use this mail id in workflows rules.


kindly give me some suggestions


I would assume that you want a workflow to fire when a record is changed?


If that is the case get the manage from the user record where the user is equal to the lastModifiedByID of the record.


You cannot execute a workflow and grab the current user ID for the logged in user, the data used in a workflow needs to be commited to a field somewhere. With that said, lastModifiedByID would tell yuo who dun it.