Skip to main content
Hello,

 

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 件の回答
  1. 2021年4月9日 8:23
    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.

     

    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.

     

    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 ---&gt; <a href="https://mycompany.my.salesforce.com/{!Lead.Id}">CLICK HERE&nbsp;</a></p>

     

    ​​​​​​​