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
dmgdmg 

APEX trigger for properly tracking emails sent via Workflow Email Alert

I recently upgraded to enterprise edition primarily for sending emails via time based workflow actions.  My problem is that these workflow email alerts are not tracked in salesforce at all.  My sales rep demoed an identical setup where the workflow email alerts instead went through the traditional salesforce email system and were visible under activity history as well as trackable via HTML email status.

 

He said this was accomplished via an APEX trigger, but in my research I have not found how to hook into the workflow email alert to gain the same functionality.  This solution is preferable to encapsulating the entire email send into the trigger because it allows non developers to choose email templates and timing via workflow point and click.  Can anyone post some code on how to implement this so workflow emails are properly tracked (as they should be in the first place)?

 

Thanks!