Create a link in the Notification to redirect to current record.

madimi sandeep
Tera Contributor

 My requirement  is I should sent notification on change of work notes in incident form  and I want know how to create a link in the notification on click on the link it should redirect to current form were we change the work notes.

 

Could any Please help me to solve the requirement

5 REPLIES 5

Michael Jones -
Giga Sage

To add a link to the current record in a notification, you can use ${URL}

https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/administer/notification/concept...

I hope this helps!

If this was helpful, or correct, please be kind and mark the answer appropriately.

Michael Jones - Proud member of the GlideFast Consulting Team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

Abhijit4
Mega Sage

You can try below line of code for incident table,

'<a href="' + gs.getProperty('glide.servlet.uri') + '/incident.do?sys_id='+current.sys_id + '">' + click here to go to current record + '</a>' //you can change text later

Let me know if you have any further queries.

Please mark this as Correct or Helpful if it helps.

Regards,
Abhijit
Community Rising Star 2022

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Hi Abhijit,

 

It showing error can you correct it .

 

Use below line of code :

'<a href="' + gs.getProperty('glide.servlet.uri') + '/incident.do?sys_id='+current.sys_id + '"> + click here to go to current record + </a>' ;

Please mark this as Correct or Helpful if it helps.

Regards,
Abhijit
Community Rising Star 2022

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP