Friday, April 13, 2018

Dynamic URL for Email Templates

In some cases, you need to add dymanic URL to Visualforce Email template to Open link regardless of Salesforce Org. To put URL dynamically use following code:

<a href="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))}{!}">{!relatedTo.Quote__r.QuoteNumber}</a>


  1. Thank you for helping people get the information they need. Great stuff as usual. Keep up the great work!!! Email templates google workspace