- 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 04:14 AM