You need to sign in to do that
Don't have an account?
KKBandi1
Merge Fields work only when I use "Send Email and verify Merge fields " button but not on email sent when a lead is created from Web to lead form
Hi ,
I have a requirement where in I have to put a link in the email sent to Lead after the web to lead creation. I need to add the Id of freshly created Lead to the link inside the email body sent to that particular lead.
When I try using Lead auto response rule, data in merge fields are not displayed. but, when I check it using " Send test and Verify Merge fields" button I can see the data.
VF TEMPLATE:
<messaging:emailTemplate subject="Invitation" recipientType="Lead" relatedToType="Lead">
<messaging:htmlEmailBody > Congratulations! This is your new Visualforce Email Template.
{!relatedTo.Id}
</messaging:htmlEmailBody>
</messaging:emailTemplate>
Am I missing something? As per my understanding, this should work.
PS: The same template if used in the workflow is working fine. I need to utilize the Assignment rules that's the reason I am not going with Workflow rule.
Any Help is appreciated! thanks
I have a requirement where in I have to put a link in the email sent to Lead after the web to lead creation. I need to add the Id of freshly created Lead to the link inside the email body sent to that particular lead.
When I try using Lead auto response rule, data in merge fields are not displayed. but, when I check it using " Send test and Verify Merge fields" button I can see the data.
VF TEMPLATE:
<messaging:emailTemplate subject="Invitation" recipientType="Lead" relatedToType="Lead">
<messaging:htmlEmailBody > Congratulations! This is your new Visualforce Email Template.
{!relatedTo.Id}
</messaging:htmlEmailBody>
</messaging:emailTemplate>
Am I missing something? As per my understanding, this should work.
PS: The same template if used in the workflow is working fine. I need to utilize the Assignment rules that's the reason I am not going with Workflow rule.
Any Help is appreciated! thanks
Sorry for this issue you are encountering.
I have created the web2lead form. The response which I am getting once the lead is generated on my email:
Congratulations! This is your new Visualforce Email Template. 00Q6F000014o9QVUAY
So everything is working as expected when I do "Send test and verify merge fields" button or when I submit the form from the web.
Please try with the above steps and let me know if you still facing this issue.
Please mark this as "Best Answer" if it resolves your issue.
Thanks,
Nagendra