Adding url to the text field in Email templates

basavaraja
Tera Contributor

Hello All,

I have a requirement where in i need to Add url to the text field in Email templates.

Like in the email template i have a text field called as "Portal view". This should come as a link. When Users clicks on this it should open the current record.

Quick response is much appreciated.

4 REPLIES 4

Ziaur Rahman1
Tera Expert

Hi,



Use ${URI_REF} to make it linkable.




Thanks


Ziaur Rahman


Hello Ziaaur,



I created it as $ field. In the email its should show only the text (Visit Portal for more updates). It should be a hyperlink. When I click on this , it should open the related record.








Thanks & Regards,



Basavaraja Yellarthy


Infrastructure Services - Accenture Operations


IDC Bangalore India


Mobile : +91 8971325907


Mail : basavaraja.yellarthy@accenture.com<mailto:basavaraja.yellarthy@accenture.com>


MKelly83
Giga Expert

Hi



you can use a notification email script then in your notification reference the email script in what it will contain tab



${mail_script:NameofNotificationEmailScript}



Notification email script example



(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,


                  /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,


                  /* Optional GlideRecord */ event) {




template.print('<a href=https://">name of link</a>');



})(current, template, email, email_action, event);


Ziaur Rahman1
Tera Expert

Hi Basavaraja,



I meant to say that please use this method



find_real_file.png



For this you need to make display value true for clickable field.



For example You need to write - Visit Portal for More Updates ${URI_REF}



Thanks


Ziaur Rahman



Mark Correct If your requirement get fulfilled.