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

Anil Lande
Kilo Patron

Hi,

You can use email script in your template and get the field value and pass it to <a> tag.

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/notification/concept/c_E...

https://community.servicenow.com/community?id=community_question&sys_id=13e10fa9db98dbc01dcaf3231f96...

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Thank you for your quick response.Could you please explain me with simple example.I have html field editor.User used to type the meeting link url in that field.I want to add that field in Email template.Meamwhile it has to be clickable url

Thank you. Are you suggesting me to do like below script?

var URL = current.u_meeting_link;

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

Yes, you are on right track. Use it like that only.

var url= current.u_meeting_link;
template.print('<a href="'+url+'"> Meeting Link Label of your choice </a>');
Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande