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
Stephen E 4Stephen E 4 

How to avoid hard coded URLs, especially in email templates?

Hello,

We currently have many email templates with hard coded URLs (na24 for example.) The instance change will cause us to have to change all of these URLs (think its changing to NA28 or something) whats the best way to avoid hard coded URLs in the future? can we just use login.salesforce.con/therecordid ?
Raj VakatiRaj Vakati
Use the Custom Labels  .. that is the easy in email templates 

Or you can use the Relative URLS also .. /recordId