I need to create a simple link to a record but I can't drag my field into the url.
What is the best practice ?
Thanks
2 Antworten
Hi Delphine,
Two ways you can go about this:
1. If you use Classic, and want to reference Lead or Contact you can use {!Lead.Link} and {!Contact.Link}, respectively
_______________________________________________________________________________2. If you are in Lightning (this will work in Classic too), you can create a custom text formula field to grab Record Id via
CASESAFEID(Id)
Once this is done, you can hyperlink the following:"https://mycompany.my.salesforce.com/{!Lead.Id}"
In the email template.
In my example above, I'm using Lead object and my field is called "Id".
My HTML code looks like this:<p>LINK TO THE LEAD ---> <a href="https://mycompany.my.salesforce.com/{!Lead.Id}">CLICK HERE </a></p>