Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Email redirection to ESC Portal

Aswin Chandras1
Tera Contributor

Hi All,

I have a email template there I need to add the link of the approval record which should redirect to the ESC portal.

I have tried mail script but it is not coming properly. Instead of native approver should see the information in ESC portal on click of the link. 

var url = '<a href="' + gs.getProperty('glide.servlet.uri') + 'esc?id=ticket&table=' + current.sys_class_name + '&sys_id=' + current.sys_id + '">Link</a>';
template.print(url);
 
Thanks.
2 REPLIES 2

Omkar Kumbhar
Mega Sage

Hello @Aswin Chandras1 ,

Please check out this link

https://www.servicenow.com/community/employee-center-forum/url-in-an-email-notification-to-esc-view-...

Thank you,

Omkar

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.

Kieran Anson
Kilo Patron

I'd recommend looking at the OOB request_approval mail script which is provided by the Employee Center package. In particular, navigating to hrm_todo rather than ticket, to have a consistent approval experience