+ Start a Discussion
Sachin Singh 1Sachin Singh 1 

HyperLink in email template

Hi All,

I am using a email template, I wanted to put a hyperlink in this template named "Click on this".

When user click on this "Click on this" hyper link. User should it should redirect to the record/detail page.

This is very urgent. Please help.
 
Ankit Maini.Ankit Maini.
What you are adding is the url for salesforce. Go into your email template and click Edit HTML Version -> Select Field Types (object you are going to use to pull the information into the email) -> under Select Field choose Detail Link under Standard Fields. The detail link will appear highlighted in the Copy Merge Field Value -> copy that and then click the "Insert Link" image at the top of the edit page to the right of the U (underline) format button. Make sure you place your cursor in the correct area of your email template first. The window will open that will allow you to paste the detail link into. You can also type "click here" in your email and highlight it prior to the copy and paste of the detail link.

Source: https://success.salesforce.com/answers?id=90630000000gjpYAAQ (#)

Also find here:
https://help.salesforce.com/apex/HTViewSolution?id=000005012&language=en_US

 
Cyrus TalladenCyrus Talladen
What we can do is on the layout of the email template you can create a new link which contains a javascript that appends the string id of what ever that edits the record of your object.  for example: 
var url = document.URL;
var redirectString = url.indexOf('salesforce.com/')+15;
var oid = url.substr(redirectString, 15);

if(oid != null && oid !=undefined){
window.location.href = '/page/redirect?id=' + oid + '/e';
}



Cyrus Talladen
CRM Engineer
www.levementum.com