How does URI and URI_Ref works in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2019 03:58 PM
How does URI and URI_REF work. Currently our emails redirect end users(with no roles) to cms portal and ITIL users to regular ITSM view. Where does this configuration happens? I can see few email scripts, but are there any properties or scripts that I can look to understand how this URI and URI_REF works. Our goal is to redirect end users to new service portal. Any suggestions?
Thanks!
- Labels:
-
Notifications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2019 04:14 PM
Hi,
You can configure your own clickable url link in a mail script.
//in the email
${mail_script:myScripted.portal.url}
// the script name = myScripted.portal.url
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
var instanceURL = gs.getProperty('glide.servlet.uri');
var myTable = current.sys_class_name;
var myPortal = '/myPortal/';
var myURL = '<a href=' + instanceURL + myPortal + '?id=form&table=' + myTable + '&sys_id=' + current.sys_id + '>' + current.number + '</a>';
template.print(myURL);
})(current, template, email, email_action, event);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2019 02:22 AM
Hi,
If any one knows about this, please share.
Regards,
MSM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 06:52 AM
Hi, I have the similar requirement. Let me know if you got the answer.