- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 07:02 AM
Hi All,
Can someone help me to correct email script for RITM Number Link.
My notification is running on Catalog Task table. Whenever An RITM is commented, An email is getting triggered I want to add RITM link of service portal in email notification.
Thanks And Regards,
Meenal Gharat
Solved! Go to Solution.
- Labels:
-
Notifications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2019 08:22 AM
Hi All,
I have identified a way and it is working like a charm.
So, Below is my code which worked.
(function runMailScript(current, template, email, email_action, event) {
var url='';
var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id',current.request_item);
gr.query();
if(gr.next())
{
var sysid = gr.sys_id;
gs.log(sysid+ 'Get sysid');
template.print('<a href="enter your portal url sys_id='+sysid+'">' +gr.number+ '</a>');
}
}
)(current, template, email, email_action, event);
Thank you,
Meenal Gharat

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 10:20 AM
try doing
${current.request_item.URI_REF}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2019 08:22 AM
Hi All,
I have identified a way and it is working like a charm.
So, Below is my code which worked.
(function runMailScript(current, template, email, email_action, event) {
var url='';
var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id',current.request_item);
gr.query();
if(gr.next())
{
var sysid = gr.sys_id;
gs.log(sysid+ 'Get sysid');
template.print('<a href="enter your portal url sys_id='+sysid+'">' +gr.number+ '</a>');
}
}
)(current, template, email, email_action, event);
Thank you,
Meenal Gharat