E-mail Notification link to Incident

ljschwaberow
Giga Expert

I am creating a notification within a SLA workflow to notify the assignee and assignee's manager when the SLA reaches a certain percentage. I want to include a link to the incident that is being referenced in the e-mail but the way I usually include a link, ${URL}, seems to be referencing the SLA Task for that priority instead of the incident. I am not familiar with scripting, so does someone have a way to include a link to the incident in an e-mail notification that is referencing the Task and SLA variables?

1 ACCEPTED SOLUTION

eican
Kilo Guru

It is as simple as dot-walking: ${task.URL} or ${task.URI_REF} (then it will not say "LINK" but the ticket number)


View solution in original post

10 REPLIES 10

thanks a lot...., it helped me to create a link to case incident from our one of the child table notification.

Are you creating a notification based on the SLA table or a different one?



The ".URI" or ".URL_REF" only works for a reference field on the table you are creating the notification for. Make sure that the part before ".URI" or ".URL_REF" is matching the reference field name.


Hi There,



PFA Screenshot for more details.Untitled.jpg


In the screenshot it looks like you have a typo:



Instead of "${task.URI_REF}" it looks like "$task.URI.REF}" (between "URI" and "REF" is supposed to be an "_" not a ".")





See also:



http://wiki.servicenow.com/index.php?title=Embedded:Specifying_a_URI_Field#Linking_to_Related_Records



http://www.servicenowguru.com/system-definition/email-notifications-system-definition/email-links-uri-uriref/


Hello,


I have the similar issue as I want the change request number as link.I have tried the ${task.URL} or ${task.URI_REF} both of it but its not working .


I want the assign to first name also.It also not populating.I am getting the output as below.


Only change number is coming correctly.can some one help me in this?




find_real_file.png




find_real_file.png