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
Veerle RuttenVeerle Rutten 

Merge fields in html email template - url not correctly merged

Hi,
I added below url in an html email template. The intention is to merge the contact ID and case iD into the url.
http://config-config.cs3.force.com/surveyforce/TakeSurvey?id=a1vQ0000000kVMgIAM&cId={!Contact.Id}&caId={!Case.Id}

The merging correctly displays the merged ID's in the link in the email as below:
http://config-config.cs3.force.com/surveyforce/TakeSurvey?id=a1vQ0000000kVMgIAM&cId=003Q000000XOqLE&caId=500Q0000007DwwM

But when I click this url it opens in the browser without the Id's of the merged fields:
https://config-config.cs3.force.com/surveyforce/TakeSurvey?id=a1vQ0000000kVMgIAM&cId=%7b!Contact.Id%7d&caId=%7b!Case.id%7d

When I use a text email template instead of an html template it works fine.

Any idea why this happens?

Thanks,
Veerle
 
Veerle RuttenVeerle Rutten
Hi, anyone has an idea?
Thanks,
Veerle
Veerle RuttenVeerle Rutten
I found the solution: when creating the hyperlink in the html email template, the link icon should be used. I was only copy/pasting the url and this was the reason the merge did not work.
Ashwini Patil 32Ashwini Patil 32
Hi,
Can you post the solution for this? I am in lightning and trying to add the merge fields in the URL.
Thanks!