
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2014 01:46 AM
Hi everyone
I want to add a link to an external wiki page in some notifications. Because I need it in different languages and only in some cases I thought: hey lets use an notification email script.
It's not working. It produces everytime an link to the instane: http://<instance-name>.service-now.com
I'm not sure if it's an bug or some error in my script. Some suggestions?
Thank you
Christina
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2014 02:26 AM
something you have misplaced in the quotes and double quotes .. link to instance comes only if the url is setup incorrectly .. this should help
var attachLink = "<a href='http://wikipedia.de'> Link </a>";
template.print(attachLink);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2014 02:14 AM
Hi Christina,
Use this anchor tag
var attachLink = "<a href='www.wikipedia.de' target='_blank'>" ;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2014 02:33 AM
Hi Anurag
I did change it as you asked me to. But that's the link that SNow produces:
https://steriadev.service-now.com/www.wikipedia.de
So that's really to strange.
Seems like a bug to me. What do you think?
Thanks
Christina
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2014 02:44 AM
can you cross check that either on your email notification or your template , you are not using this line
gs.getProperty("glide.servlet.uri") --> this gives the current instance name

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2014 02:26 AM
something you have misplaced in the quotes and double quotes .. link to instance comes only if the url is setup incorrectly .. this should help
var attachLink = "<a href='http://wikipedia.de'> Link </a>";
template.print(attachLink);