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.

If requestor click on Myorder button.

Gulfam
Giga 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
Tera Patron

Hi @Gulfam 

 

I think it is OOTB available.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ 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 😞

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ 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;