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
Jai SureshJai Suresh 

Email Template for Records owned by Deactivated User

Hi, I require some help in the following scenario.

When a User is deactivated, a workflow is triggered to send an email to the User's Manager.

I now have to extend this to include the summary of records owned by the User (Contacts, Accounts, Opportunities etc.)

How can I manage this using email templates/visualforce components and apex class?

Any help will save me lots of time in searching for a solution.

Thank you.
Jai SureshJai Suresh
I have created a Workflow Rule and an VF Email Template.

All I would like to know now is how do I pass the User's Id to the apex class.

Any help is deeply appreciated.

Thank you.