- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 12:02 AM
Hi Team,
How to configure the email script for RITM portal link on notifications ?
I have developed the email script its giving the correct RITM portal link but hyperlink just showing as RITM instead of RITM09107309 something like that below is my script and screenshot for the same.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 12:07 AM
your notification is on sc_task?
If yes then do this
(function runMailScript(current, template, email, email_action, event) {
var url = '<a href="' + gs.getProperty('glide.servlet.uri') + 'esc?id=ticket&table=sc_req_item&sys_id=' + current.request_item + '">' + current.request_item.number + '</a>';
template.print(url);
})(current, template, email, email_action, event);
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
06-03-2025 12:05 AM - edited 06-03-2025 12:10 AM
Hey Raj,
Try this:
(function runMailScript(current, template, email, email_action, event) {
var url = '<a href="' + gs.getProperty('glide.servlet.uri') +
'esc?id=ticket&table=sc_req_item&sys_id=' + current.request_item + '">' +
current.getDisplayValue('request_item') + '</a>';
template.print(url);
})(current, template, email, email_action, event);
Please mark my response as correct and helpful, so others can benefit too
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 12:07 AM
your notification is on sc_task?
If yes then do this
(function runMailScript(current, template, email, email_action, event) {
var url = '<a href="' + gs.getProperty('glide.servlet.uri') + 'esc?id=ticket&table=sc_req_item&sys_id=' + current.request_item + '">' + current.request_item.number + '</a>';
template.print(url);
})(current, template, email, email_action, event);
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
06-03-2025 12:16 AM - edited 06-03-2025 12:18 AM
Perfect Thanks Sir