You need to sign in to do that
Don't have an account?
Issue with Email templates
Hi,
I wrote the trigger for sending email to contact when the case is opened.
I used the email template . In that , I need to pass my value of case number. So I tried like this {!Case.CaseNumber} in template.
But It dint show any case number.
I need to show the case number in subject using email templates and apex trigger.
Note :When Use the same email template in workflow rules , It works and shows the case number in subject.
But I am in need of apex trigger for sending email using templates which shows the case Number.
Please help to fix this problem.
Thanks & Regards.
Ambiga
AmbigaRam
1. The reason it works in workflow rules is that the workflow is already associated to a Case so the email alert has access to the Case being triggered. Email templates sent via APEX need a bit more help to make the association
2. This is my utility method for sending templated email: