How to hyperlink a file path (e.g: \\servername\folderX\file.vbs) into a notification email script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 05:20 AM
Hi all,
I have a requirement to add a clickable link into a notification, which will be sent to user on request completion.
The link should redirect user to a file present on a server. I tried using the following syntax into my email script , but it is not working.
<a href="file:///\\servername\folderX\file.vbs"target="_blank">Link to file</a>
Any lead will be highly appreciated.
Thanks
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 06:11 AM
Hi,
What type of link it is? Is it some url where user should be redirected to?
Is it ftp server url path?
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 01:27 AM
The link redirects user to a file present in a local server. It looks like-
servername/folderName/fileName.vbs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 01:44 AM
Hi,
You can use:
${URI_REF} - display value of the record as link text.
Check if it is worked or not.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 01:19 PM
Hi Debanjana,
It's related to the sanitizer that not allow "file" protocole in OOB. Thing that you can made si to configure the script include "HTMLSanitizerConfig" and change the value of "HTML_WHITELIST" by
HTML_WHITELIST : {
globalAttributes: {
attribute:[],
attributeValuePattern:{}
},
urlAttributes: { protocols : [ "file" ] },
},
this code allow link to local file with protocol : "file"
Link to the documention :https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/security/concept/...
Regards,
Audrey