Based on user role notification link redirected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 10:49 PM
I have a requirement based on user role,notification link take to ITIL user to incident form and end user to service portal incident.
Any suggestion Please...I n tried below code mail script .but no luck.
if(gs.hasRole('itil')){
template.print('${URI_REF}');
}
else{
var url = '<a href="' + gs.getProperty('glide.servlet.uri') + 'sp?id=ticket&table=' + current.sys_class_name + '&sys_id=' + current.sys_id + '">${number}</a>';
template.print(url);
}
Thanks in advance
SIva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 11:05 PM
Hi,
Go though below thread, this might help you.
Notification email script - check user role and redirect to ess or default view
Mark Correct/Helpful, based on impact of the response.
Regards,
Devyani