The CreatorCon Call for Content is officially open! Get started here.

how to add a url to a task record in an email using a different table

Sharon Williams
Tera Contributor

I have setup notification using the task_sla table.  These notifications are sent to users when the SLA for an incident has reached 300%.  I'm able to include the incident number in the body of the notification. However, I want to make the incident number a link so that when the user receives the notification, they can click on the incident number and view the details of the incident.  See the attachment of my notification for details,  Is there a way to include a link to the incident record that the has the breached sla?

1 ACCEPTED SOLUTION

Voona Rohila
Mega Patron
Mega Patron

Hi Sharon 

You want to refer Task Record(i.e incident/problem) in your notification right? 

try this in HTML body

${task.URI_REF}

Link to related records

 

There are few OOTB Notifications too, you can refer them in your PDI

https://<<instance>>.service-now.com/sysevent_email_action_list.do?sysparm_query=collection%3Dtask_sla%5Emessage_htmlLIKEtask.URI_REF&sysparm_view=


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

View solution in original post

3 REPLIES 3

ersureshbe
Giga Sage
Giga Sage

Hi,

Can you refer below screenshot. The option is available in your notification template. You can use that option and create a link. 

URL - which is highlighted is helping to route the record to appropriate the location. But you should write email script to get the sys_id of the current record which one you are referring.

find_real_file.png

Regards,

Suresh.

Regards,
Suresh.

Voona Rohila
Mega Patron
Mega Patron

Hi Sharon 

You want to refer Task Record(i.e incident/problem) in your notification right? 

try this in HTML body

${task.URI_REF}

Link to related records

 

There are few OOTB Notifications too, you can refer them in your PDI

https://<<instance>>.service-now.com/sysevent_email_action_list.do?sysparm_query=collection%3Dtask_sla%5Emessage_htmlLIKEtask.URI_REF&sysparm_view=


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

How to redirect to agent worspace