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
@GM@GM 

Merge fields are not getting populate in VF email template.

Hi All,

I have configured workflow to send email using VF email template.

If i click the button Send Test and Verify Merge Fields, then values are coming in all merge fields.

But when that workflow(send email using VF email template) get executed then the two merge fields are not coming with values (Dear Field_value1 and Field_value2,).

The class is having signature Without sharing.

Could you please suggest to resolve this issue?

Thanks in Anticipation,

Regards,
GM ...
Best Answer chosen by @GM
Shaijan ThomasShaijan Thomas
Merge fields are explicitly query and get in email template. Please check the following link
https://success.salesforce.com/answers?id=90630000000h0T4AAI
Thanks
Shaijan

All Answers

Zuinglio Lopes Ribeiro JúniorZuinglio Lopes Ribeiro Júnior
Hello,

Not sure what is happening as I don't have a holistic view of the scenario but I would check permission settings such as Profiles. Moreover be sure that your fields actually has values when the workflow is triggered. How that class that you mentioned is related to your workflow and e-mail template?

Regards.

​Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.
Shaijan ThomasShaijan Thomas
Merge fields are explicitly query and get in email template. Please check the following link
https://success.salesforce.com/answers?id=90630000000h0T4AAI
Thanks
Shaijan
This was selected as the best answer
@GM@GM
Hi Shaijan Thomas and
Zuinglio Lopes Ribeiro Júnior

Thanks for your solution its worked.