Email template get the URL field with link

Kavitha
Tera Contributor

Hi All,

We have one field contain URL value in Incident communication task.Have to get that URL field in email template.Could you please suggest.

19 REPLIES 19

Kavitha
Tera Contributor
Thank you for super fast reply. For example user type in that field as www.google.com.In email template I have to bring www.google.com content like URL.

Hi Kavitha, You will have to use something like below,

var urlText=current.u_meeting_url.toString();

var url= urlText.replace(/<[^>]*>/g, ' ');

template.print('<a href="'+url+'"</a>');

Please mark answer as correct or helpful if it helps.

Thanks and Regards

Abhijit

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Kavitha
Tera Contributor

Thank you for your help 

Kavitha
Tera Contributor
Hi Abhijit, If I am clicking on that external link via email log.Its appended with our internal url. Could you please clarify. Thanks, Kavitha

could you please provide URL that you are testing and email screenshot.

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP