Is it possible to link to a document stored outside of ServiceNow, within a Knowledge article?

chadcb
Kilo Explorer

There are documents (Word, Excel, PDF) that are stored on a server that I would like to be able to link directly to within a Knowledge article. I know that I can attach them to the article and link them that way, but some of these files are regularly updated, so it would be more convenient to be able to link to that server location. So far when I try either by using the Insert/Edit link option, or by editing the html directly, the link is removed. For example, if the file were located at- \\IT Namespace\document\example.docx, is there a way to link directly to that? If it helps I'm on Helsinki. Thanks.

1 ACCEPTED SOLUTION

darius_koohmare
ServiceNow Employee
ServiceNow Employee

It may depend on if the browser can support the standard file:// syntax


Create a hyperlink and point the destination to:


file://<REPLACEFILEPATHHERE>



For example, file://C:\Users\userid\Desktop\ServiceNow\example.txt     should open a local file named example.txt.



If your HTML is being scrubbed, it is because of the HTML sanitizer. You can right click the field, configure dictionary, and find the attribute for html_sanitizer=true and set it false. Or edit the sanitizer rule across the instance: Configure HTML sanitizer


View solution in original post

2 REPLIES 2

darius_koohmare
ServiceNow Employee
ServiceNow Employee

It may depend on if the browser can support the standard file:// syntax


Create a hyperlink and point the destination to:


file://<REPLACEFILEPATHHERE>



For example, file://C:\Users\userid\Desktop\ServiceNow\example.txt     should open a local file named example.txt.



If your HTML is being scrubbed, it is because of the HTML sanitizer. You can right click the field, configure dictionary, and find the attribute for html_sanitizer=true and set it false. Or edit the sanitizer rule across the instance: Configure HTML sanitizer


It looks like it is the HTML sanitizer. Thank you for pointing me in the right direction!