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
JesseRCJesseRC 

Using HTML email template in APEX

I'm trying to have a APEX trigger use a html template. It works in sending the email but i cannot get the merge fields to work.

 

There are two custom objects, object1 and object2. When object1 is "completed" it creates object2 and i would like to use an email template in an apex trigger off of object2. But none of the fields from object2 are coming through. Does anybody have any good examples?