Activity › Forums › Salesforce® Discussions › What is the advantage of using setTemplateId() in Apex Class? Salesforce® Discussions What is the advantage of using setTemplateId() in Apex Class? Posted by Shweta on June 10, 2020 at 3:42 PM What is the advantage of using setTemplateId() in Apex Class? Anjali replied 5 years, 11 months ago 2 Members · 1 Reply 1 Reply Anjali Member June 11, 2020 at 10:30 AM By using setTemplateId(), you can use the template already present in your org otherwise while sending the mail through apex you have to mention the body of mail by your own. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me