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.

Need to send an Kb article email notification to user, when particular requested item is closed.

pranavi
Tera Contributor
 
1 ACCEPTED SOLUTION

HemanthGollangi
Giga Guru
  1. Create a new email script.

HemanthGollangi_0-1715617448019.png

 

HemanthGollangi_1-1715617460366.png

 

 var instanceName = gs.getProperty("instance_name");
template.print("<a href=\'" + instanceName + "/kb_view.do?sys_kb_id=" + sys_id + "\'>KB LINK</a>");



  1. Goto System Notifications> Notification
  2. Click on New (provide the condition accordingly)

HemanthGollangi_2-1715617490655.png

 

 

  1. Call the mail script in the notification ${mail_script:kb_link}

HemanthGollangi_3-1715617501403.png

 

 

View solution in original post

3 REPLIES 3

HemanthGollangi
Giga Guru
  1. Create a new email script.

HemanthGollangi_0-1715617448019.png

 

HemanthGollangi_1-1715617460366.png

 

 var instanceName = gs.getProperty("instance_name");
template.print("<a href=\'" + instanceName + "/kb_view.do?sys_kb_id=" + sys_id + "\'>KB LINK</a>");



  1. Goto System Notifications> Notification
  2. Click on New (provide the condition accordingly)

HemanthGollangi_2-1715617490655.png

 

 

  1. Call the mail script in the notification ${mail_script:kb_link}

HemanthGollangi_3-1715617501403.png

 

 

Thank You for helping me. 
Can you please also help me , why in requested item i cant find this email notification. Rather when i clicked on preview it worked.

 

pranavi
Tera Contributor