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
12-30-2019 02:50 AM
Hi Sanjiv,
I'm trying to hyperlink a file path in Knowledge article, added this line " urlAttributes: { "protocols" : [ "file", "notes" ] }," under HTML_WHITELIST Class in the script include but still the file doesn't open through the article however if I copy paste the URL it gets downlaoded.
Can you please suggest something here, any help is greatly appreciated!
Ankita

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2020 11:24 AM
Can you post a screenshot of where you added it?
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2022 12:47 AM - edited 11-21-2022 12:48 AM
Hi Sanjiv,
I tried these two ways , but no luck
1. template.print('<a href="file:///servicenow\tracker\files" target="_blank">Link here for Files</a>');
2. template.print('<a href="\\servicenow\tracker\files" target="_blank">Link here for Files</a>');
When I try to access the file in Chrome/Edge, it opens. I can go to the specific path and find the files.
But when this is embedded into the notification script, it does not redirect user to that.
Could you please help me on it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2022 12:34 AM
@Debanjana did you get any solution please ? if you have solution kindly help me on it
I tried these two ways , but no luck
1. template.print('<a href="file:///servicenow\tracker\files" target="_blank">Link here for Files</a>');
2. template.print('<a href="\\servicenow\tracker\files" target="_blank">Link here for Files</a>');