Below code is to display the record link in Visualforce Email Template,
{!LEFT($Api.Partner_Server_URL_140, FIND(".com/",$Api.Partner_Server_URL_140)+3)}/{!relatedTo.Id}"
https://ap1.salesforce.com/0069000000DBDQm
{!LEFT($Api.Partner_Server_URL_140, FIND(".com/",$Api.Partner_Server_URL_140)+3)}/{!relatedTo.Id}"
Output
https://ap1.salesforce.com/0069000000DBDQm
No comments:
Post a Comment