Comments on: Email links using ${URI} and ${URI_REF} https://servicenowguru.com/email-notifications-system-definition/email-links-uri-uriref/ ServiceNow Consulting Scripting Administration Development Tue, 28 May 2024 21:23:53 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Mila Morales https://servicenowguru.com/email-notifications-system-definition/email-links-uri-uriref/#comment-6988 Tue, 19 Sep 2017 11:41:41 +0000 https://servicenowguru.wpengine.com/?p=1645#comment-6988 In reply to Barry.

$⁠{URI_REF} retrieves the value of the referencing field of the table. In your case, the referencing field might be the short description. You can use an email script to then add this script in your email script:

 
template.print('<p>Click <a  rel="nofollow ugc">' + current.number + '</a> to view the story.'); 
]]>
By: Barry https://servicenowguru.com/email-notifications-system-definition/email-links-uri-uriref/#comment-6987 Wed, 14 Jun 2017 15:17:31 +0000 https://servicenowguru.wpengine.com/?p=1645#comment-6987 I’m trying (and failing) to get a Story number to display as the link in an email notification. I’ve got the notification using a specific template pointing to the Story table, but if I use ${URI_REF}, it displays the story’s Short Description rather than the Number. I’ve tried ${task.URI_REF}, but it displays nothing.

]]>
By: Mark Stanger https://servicenowguru.com/email-notifications-system-definition/email-links-uri-uriref/#comment-6986 Fri, 01 Jul 2016 15:03:53 +0000 https://servicenowguru.wpengine.com/?p=1645#comment-6986 In reply to Ankit.

Just mail scripts as far as I know.

]]>
By: Ankit https://servicenowguru.com/email-notifications-system-definition/email-links-uri-uriref/#comment-6985 Fri, 01 Jul 2016 07:40:27 +0000 https://servicenowguru.wpengine.com/?p=1645#comment-6985 In reply to Mark Stanger.

In what scripts we can use ${uri_ref}? Can we use it in business rules and scheduled jobs.
I have to set the description of an incident and want to add a link of the gliderecord in that.

]]>
By: Mark Stanger https://servicenowguru.com/email-notifications-system-definition/email-links-uri-uriref/#comment-6984 Wed, 13 Jan 2016 01:36:19 +0000 https://servicenowguru.wpengine.com/?p=1645#comment-6984 In reply to Brad.

Sure. Navigate to ‘System UI -> Messages’ and create a new message record there with a ‘Key’ value of ‘LINK’ and a ‘Message’ value of whatever you want.

]]>
By: Brad https://servicenowguru.com/email-notifications-system-definition/email-links-uri-uriref/#comment-6983 Tue, 12 Jan 2016 23:26:04 +0000 https://servicenowguru.wpengine.com/?p=1645#comment-6983 This was very helpful. We are just starting to set up many notificatoins. Is is possible to use ${URI} but with a custom label besides ‘LINK’?

]]>
By: Alan https://servicenowguru.com/email-notifications-system-definition/email-links-uri-uriref/#comment-6982 Thu, 14 May 2015 16:11:03 +0000 https://servicenowguru.wpengine.com/?p=1645#comment-6982 Hi , found this after struggling for 2 days.

i’ve manged to get most of what I need working but need a spot of help on one last bit please. I’m trying to tidy up Survey notifications as follows.

“You recently contacted IT Support about your Incident ${trigger_id} for ‘${trigger_id.short_description}’
Your feedback is key in enabling us to continually improve our service, please take a moment by clicking HERE to complete a short survey.”

I’m trying to get the word “HERE” to direct the user to the survey but the email prints this (AINST0010340″>here) when I use ${URI_REF}

and the whole url when I use ${mail_script:Survey User Invite_script_1}

any suggestions???

]]>
By: Mark Stanger https://servicenowguru.com/email-notifications-system-definition/email-links-uri-uriref/#comment-6981 Fri, 08 Aug 2014 18:50:38 +0000 https://servicenowguru.wpengine.com/?p=1645#comment-6981 In reply to M Klein.

It will work for any record in the system. URI_REF simply points to the ‘current’ object for the record that triggered the notification.

]]>
By: M Klein https://servicenowguru.com/email-notifications-system-definition/email-links-uri-uriref/#comment-6980 Fri, 08 Aug 2014 18:21:47 +0000 https://servicenowguru.wpengine.com/?p=1645#comment-6980 Will the URI_REF work with enhancement and defect notifications?

]]>
By: Nat McLaren https://servicenowguru.com/email-notifications-system-definition/email-links-uri-uriref/#comment-6979 Mon, 02 Jun 2014 10:59:31 +0000 https://servicenowguru.wpengine.com/?p=1645#comment-6979 I’m looking to do something similar to the printing of task SLAs. I need to be able to add to an email template for a problem record, all associated details for problem tasks linked to that problem. Any ideas?

]]>