I need to include a link to a VF page in an email template. The VF page would be dynamic, meaning it would be a different page depending on the contact that submitted information on that page, the time frame, etc. How do I do this? I have located the VF page in my Setup, but I don't know how to exactly link it, assuring the link is relevant depending on who has submitted it, the relevant week, etc. #Email Template #Visualforce Pages #Merge Fields
Ok, then use with Merge Fields to populate the values.
For example:
if your vf page name as "AccountVFDetailPage"
https://your-salesforce-domain-url/apex/AccountVFDetailPage?id=0012v00003KxNSaAAN
Edit the Email Template, and use with <a href=""></a> to pass the vf page with parameters.
Example:
<a href="https://your-salesforce-domain-url/apex/AccountVFDetailPage?id={!Account.Id}">
{!Account.Name}
</a>
use merge field to get the value:
here - {!Account.Name}
{!Account.Name} - Account is a Object (Standard/Custom Object) and Name is the api field