function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
abi060988abi060988 

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

Starz26Starz26

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.