Email templates

All this talk about notifications had me poking around and I just learned about using ${URI_REF} instead of ${URI}. It’s magical.

  • ${URI_REF} creates a link to the current record using the records display value. So it’s essentially… the same as;

    var url = 'https://' + gs.getProperty('instance_name') + '.service-now.com/';
    url += current.getLink();
    template.print('<a href="' + url + '">' + current.getDisplayValue() + '</a>');
    
    • ${URI} creates a link to the current record using the text “Link”.
Avatar
Jace Benson
ServiceNow Developer

ServiceNow is my day job, JAMStack is my passion.

comments powered by Disqus