Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Based on user role notification link redirected

siva72
Tera Contributor

 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

 

 

1 REPLY 1

Devyani_6
Mega Guru

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

www.dxsherpa.com