+ Start a Discussion

Turn a URL merge field into a "Click Here" text

I am creating an HTML email template and some of the merge fields I want to use are URL's.
I would like to turn those URL's into something that is easier to read (right now the email comes over with these long URLs)

i.e. In our approval process an automated email gets sent to a SVP and it shows up in their inbox with a
Click Here to review: https://na3.salesforce.com/p/process/ProcessInstanceWorkitemWizardStageManager?id=04i500000039egG
The problem is that that URL always changes because they are for different approvals so I cant write
<a href="https://na3.salesforce.com/p/process/ProcessInstanceWorkitemWizardStageManager?id=04i500000039egG">Click here to review</a>

Any ideas how I would turn these merge fields into a clickable text field??
Here is one of the URL fields {!ApprovalRequest.External_URL} 
Suresh RaghuramSuresh Raghuram

Hi Mikey,

You can try this.
Replace 04i500000039egG = {!FieldName.Id}
<a href="../p/process/ProcessInstanceWorkitemWizardStageManager?id='{!FieldName.Id}'>Click here to review</a>
If you still have questions let me know.

Hi Suree,
Thank you for the answer - it almost works. I'm getting this error below based on this string:
<a href="https://na3.salesforce.com/p/process/ProcessInstanceWorkitemWizardStageManager?id='{!ApprovalRequest.External_URL}'">Click here to review</a>

I think I have my quotes single vs double messed up at the end
<a href="https://..........id='{!ApprovalRequest.External_URL}' "

Unable to Access Page
The value of the "id" parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or reduce the value length and resubmit. If the error still persists, report it to our Customer Support team. Provide the URL of the page you were requesting as well as any other related information.