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

Link to alternate table in a Notification

Vlad_Rozic
Kilo Contributor

Hey all

I have setup assessments within Service Now and have setup a small mail notification to alert several users when a survey has been completed.

Currently it simply offer these users:

*So and So* has completed a survey based on the original ticket: *Original Ticket that the survey is triggered from is shown* (Use {Trigger_ID})

Now, what I'd like to do is make the ticket number clickable so that the user can click it and view the original ticket right from the email, but using the standard {URI_REF} won't work since the notification itself is triggering off of the assessment table.

If I use {trigger_ID} it links that ticket number fine. Is there any script available that can be entered to make the output of "trigger_id" link to the original ticket?

Thanks for any suggestions!

1 ACCEPTED SOLUTION

Vlad, I think your best course of action from here is to submit an incident in HI.   It seems like you have everything setup and should be able to use ${trigger_id.URI_REF} and ${trigger_id.URI}.   The support team should be able to help you further by taking a closer look at your instance and it's logs.



If you do submit an incident please be sure to post back here and let us know!



Thanks


Brian


View solution in original post

10 REPLIES 10

brian_quinn
ServiceNow Employee
ServiceNow Employee

Have you tried ${trigger_id.URI_REF} or ${trigger_id.URI}?



The wiki discusses .URI and .URI_REF for notifications here:


http://wiki.servicenow.com/index.php?title=Scripting_for_Email_Notifications#Linking_to_Related_Reco...


Hi Brian,


I have tried the additions you specified, but in both cases the actual Trigger ID disappears and nothing ends up being displayed in the email body.



Thank you however for the link to the Wiki.. hopefully I can figure out how to use that to script out what I need.


Vlad, that's odd, I setup an email notification using ${trigger_id.URI_REF} and ${trigger_id.URI} and it worked as expected.   Do you have "Content type" set to "HTML and plain text" or "HTML only"?


Hey Brian,



I captured a screenie.. this is how it looks currently. When I recieve the email however, it shows the User, but then says "for ticket ____" and its blank.



It does this using URI, or URI_REF.



I wonder, is there some other area that some scripting needs to be added?


Clipboard01.jpg