You need to sign in to do that
Don't have an account?
Luke Higgins 23
Pass record ID into email template to append on URL
I am trying to send email to contacts through an email template and I want to append the Contact ID on a URL. I can get it to work within Salesforce but once the email is sent to an external email address, the Contact ID portion of the URL is missing.
Visualforce Email Template:
Visualforce Email Template:
<messaging:emailTemplate subject="Test" recipientType="Contact" > <messaging:htmlEmailBody > <apex:variable var="c" value="{!recipient}" /> <html> <body> <p>Hello,</p> <p><a href="www.test.com/ContactId={!recipient.Id }">Linkr</a></p> </body> </html> </messaging:htmlEmailBody> </messaging:emailTemplate>
https://trailblazers.salesforce.com/answers?id=90630000000gjpYAAQ