notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 04:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 04:25 AM
you want to take user to service portal?
no email script is required, you can directly include the link in the body, ensure you give relative URL i.e. /sp and not instance name since instance name will change when the code migrates
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 04:26 AM
Hi,
Add > within quotes to line 8 of mail script just after </a
For the notification body call it in format as below
${mail_script:link_sp}
there should not be any space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 04:29 AM
It still does not work,
I need to add a link to the word "click here" which, once clicked, will take me to the portal page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 04:39 AM
In your email script update below line :
template.print('<a href=' + gs.getProperty('glide.servlet.uri') + '/sp' + '>' + 'Click here' + '</a>');
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates