Add link in HR Response Template

Nicole Solarz1
Giga Contributor

Is there a way to link a specific knowledge article in an HR Response Template? It would save a step to just have the link in the response instead of also attaching the KB to the case. Thanks!

1 ACCEPTED SOLUTION

Hyperlink will not work since OOB attributes which makes show you tinyMCE editor are not configured for template body field on response template table.

 

Follow below steps to add tinyMCE editor for template body field

 

- Go to dictionary of template body column on response template table.

 

https://dev41006.service-now.com/nav_to.do?uri=%2Fsys_dictionary.do%3Fsysparm_query%3Dname%3Dsn_templated_snip_note_template%5Eelement%3Dhtml_script_body%26sysparm_query_encoded%3Dname%3Dsn_templated_snip_note_template%5Eelement%3Dhtml_script_body%26sysparm_referring_url%3Dsn_templated_snip_note_template.do%3Fsys_id%3D148950212f4ce8101d84d2172799b630@99@sysparm_record_rows%3D1@99@sysparm_record_target%3Dsn_templated_snip_note_template@99@sysparm_nostack%3Dtrue@99@sysparm_record_list%3Dtable%253Djavascript%253Anew%2Bsn_hr_core.hr_CaseAjax%2528%2529.getAllHRCaseTables%2528%2529%253B%255EORtable%253Dsn_hr_core_task%255EORDERBYname@99@sysparm_record_row%3D1%26sysparm_view%3Dadvanced%26sysparm_view_forced%3Dtrue

 

- Add below attributes to template body column and save changes.

 

convert_urls=false,serializer=com.glide.script.TranslatedTextXMLSerializer,tinymce_toolbar1=true,editor.height=300,editor.plugins=table colorpicker textcolor link image media codemirror lists advlist fullscreen charmap directionality emoticons hr insertdatetime nonbreaking pagebreak print searchreplace wordcount anchor toc codesample visualblocks visualchars compat3x autolink align_listitems,editor.toolbar= fontselect fontsizeselect | bold italic underline strikethrough forecolor backcolor pastetext removeformat |  formatselect  searchreplace undo redo |  bullist numlist outdent indent alignleft aligncenter alignright | toc table  link unlink  image media codesample | code fullscreen,encode_utf8=false,serializer=com.glide.script.TranslatedTextXMLSerializer

 

 

find_real_file.png

 

- After doing this, the template body column will start showing TinyMCE editor which you can use add hyperlink just like the way you do in knowledge articles.

 

Regards,

Sachin

View solution in original post

6 REPLIES 6

sachin_namjoshi
Kilo Patron
Kilo Patron

Yes, you can definitely do that.

You can provide knowledge article link in template body of HR response template like below.

Template body is a HTML field. you can do lot of static variations with this field.

 

find_real_file.png

 

Regards,

Sachin

 

 

Hyperlink will not work since OOB attributes which makes show you tinyMCE editor are not configured for template body field on response template table.

 

Follow below steps to add tinyMCE editor for template body field

 

- Go to dictionary of template body column on response template table.

 

https://dev41006.service-now.com/nav_to.do?uri=%2Fsys_dictionary.do%3Fsysparm_query%3Dname%3Dsn_templated_snip_note_template%5Eelement%3Dhtml_script_body%26sysparm_query_encoded%3Dname%3Dsn_templated_snip_note_template%5Eelement%3Dhtml_script_body%26sysparm_referring_url%3Dsn_templated_snip_note_template.do%3Fsys_id%3D148950212f4ce8101d84d2172799b630@99@sysparm_record_rows%3D1@99@sysparm_record_target%3Dsn_templated_snip_note_template@99@sysparm_nostack%3Dtrue@99@sysparm_record_list%3Dtable%253Djavascript%253Anew%2Bsn_hr_core.hr_CaseAjax%2528%2529.getAllHRCaseTables%2528%2529%253B%255EORtable%253Dsn_hr_core_task%255EORDERBYname@99@sysparm_record_row%3D1%26sysparm_view%3Dadvanced%26sysparm_view_forced%3Dtrue

 

- Add below attributes to template body column and save changes.

 

convert_urls=false,serializer=com.glide.script.TranslatedTextXMLSerializer,tinymce_toolbar1=true,editor.height=300,editor.plugins=table colorpicker textcolor link image media codemirror lists advlist fullscreen charmap directionality emoticons hr insertdatetime nonbreaking pagebreak print searchreplace wordcount anchor toc codesample visualblocks visualchars compat3x autolink align_listitems,editor.toolbar= fontselect fontsizeselect | bold italic underline strikethrough forecolor backcolor pastetext removeformat |  formatselect  searchreplace undo redo |  bullist numlist outdent indent alignleft aligncenter alignright | toc table  link unlink  image media codesample | code fullscreen,encode_utf8=false,serializer=com.glide.script.TranslatedTextXMLSerializer

 

 

find_real_file.png

 

- After doing this, the template body column will start showing TinyMCE editor which you can use add hyperlink just like the way you do in knowledge articles.

 

Regards,

Sachin

Nicole Solarz1
Giga Contributor

I can do that, put once you copy and paste into the additional comments, it no longer shows as a link.