Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

If requestor click on Myorder button.

Gulfam
Tera Guru

Hi Experts, 

 

When ever user submit a request or update a request it trigger a notification. In notification I want to give a button whenever user clicked the button, it should take the user to the request.

 

Thank you.

4 REPLIES 4

Dr Atul G- LNG
Tera Patron

Hi @Gulfam 

 

I think it is OOTB available.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Hi Atul, 

Thank you for your response

 

I have used following code in email script

 

Notification is configured on sc_task table

 

var mailLink = "/sc_request&sys_id=" +current.request.sys_id;
var redirectToRec = '<a href=' + mailLink + '><img title="My-Order" src="MyOrderEUX.png" width="220" height="48"/>' + '</a>';
template.print(redirectToRec + "<br />");
 

Hi @Gulfam 

 

Sorry mate, I am not a good developer here 😞

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Hi Atul, 

 

I think I found the mistake, 

Instead var mailLink = "/sc_request?sys_id=" +current.request.sys_id;

i was using var mailLink = "/sc_request&sys_id=" +current.request.sys_id;