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
cldavecldave 

Is there any way to be able to Insert Merge fields in title on a VF email template?

Hi,

As title mentions, I would like to know if there is any way to be able to Insert Merge fields in title on a VF email template?

I would like to merge the business name from the account which template will be generated on.


Thank you in advance
Jason Curtis NBSFDGJason Curtis NBSFDG

Hi, when you say "title" do you mean the subject line of an email? In that case you can by specifying it similar to this:

<messaging:emailTemplate subject="{!relatedTo.Subject}"

Best,
Jason