- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2020 01:26 AM
Hi,
I have created a Approval Notification which has to include RITM hyperlink(i.e when clicking that link it has to open the particular RITM in service portal). Help me with the script. The URL of the form is mentioned below.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2020 03:28 AM
Hi,
In order to include RITM link (opens on portal) on approval notification, please use below script in notification email script
var gr = new GlideRecord("sc_req_item");
gr.addQuery("sys_id", current.sysapproval);
gr.query();
if(gr.next()) {
var link = '<a href="' + gs.getProperty('glide.servlet.uri') + 'sp?id=ticket&table=' + gr.sys_class_name + '&sys_id=' + gr.sys_id + '">'+gr.getValue('number') +'</a>';
template.print(link);
}
and use below line in the notification body
${mail_script:Portal_link_request} //here , Portal_link_request is the email script name
If I have answered your question, please mark my response as correct and/or helpful.
Thanks,
Suseela P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2020 03:28 AM
Hi,
In order to include RITM link (opens on portal) on approval notification, please use below script in notification email script
var gr = new GlideRecord("sc_req_item");
gr.addQuery("sys_id", current.sysapproval);
gr.query();
if(gr.next()) {
var link = '<a href="' + gs.getProperty('glide.servlet.uri') + 'sp?id=ticket&table=' + gr.sys_class_name + '&sys_id=' + gr.sys_id + '">'+gr.getValue('number') +'</a>';
template.print(link);
}
and use below line in the notification body
${mail_script:Portal_link_request} //here , Portal_link_request is the email script name
If I have answered your question, please mark my response as correct and/or helpful.
Thanks,
Suseela P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2020 01:08 AM
Hi,
Thanks it is working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2020 01:18 AM
You are welcome
Please mark my response as correct and/or helpful so that the thread will be closed.
Thanks,
Suseela P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2020 01:45 AM
Hi
As per your recent reply, you have mentioned the solution I have provided is working fine.
So, please mark my answer above as the correct one so people know this has been taken care of and this thread will be closed.
Thanks,
Suseela P.