- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2024 05:00 AM
In the notification, if an agent clicks on URL it should be redirected to case form of the requested catalogue item.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2024 10:47 AM
Hi @is_12 ,
I tried your problem in my PDI and it works for me please refer below steps
Create email script and add below code
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
// Add your code here
var instanceName = gs.getProperty('instance_name');
var url = "https://"+instanceName+".service-now.com/incident.do?sys_id=" + current.sys_id;
template.print('<a href=' + url + '&target=_blank"> Click Here </a>');
})(current, template, email, email_action, event);
Result
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2024 05:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2024 07:48 AM - edited ‎06-01-2024 07:48 AM
Hi @is_12 ,
You can create an email script, here is an example:
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
template.print('<a href="URL_TO_BE_REDIRECTED" target="_blank">' + Click Here + '</a>');
})(current, template, email, email_action, event);
If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.
Thanks,
Amitoj Wadhera
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2024 10:47 AM
Hi @is_12 ,
I tried your problem in my PDI and it works for me please refer below steps
Create email script and add below code
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
// Add your code here
var instanceName = gs.getProperty('instance_name');
var url = "https://"+instanceName+".service-now.com/incident.do?sys_id=" + current.sys_id;
template.print('<a href=' + url + '&target=_blank"> Click Here </a>');
})(current, template, email, email_action, event);
Result
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak