Add link to SLA email notification setup in Flow Designer

Chris Petrone
Tera Expert

I have some questions on generating a link in an email to a record number when it breaches SLA.

For context, we had a company come in and setup our Facilities ServiceNow implementation through Nuvolo apps.

The company setup some email sla notifications in flow designer, however they messed something up or something got deleted as there is an action that is missing that I am assuming grabs/generates the link to the record.

ChrisPetrone_0-1732127172570.png

ChrisPetrone_1-1732127222882.png

 

You can see action 3 is missing or was deleted somehow. I am not sure what they were calling for in order to produce the link at the end of the body of the email 'Click here to view 3 - AMS - Generate Task URL > URL

ChrisPetrone_2-1732127302288.png

 

I have done some research and found that in order to generate a link from a flow, there is no native solution and to use this 'Flow Designer Record Link Generator' from the community.

I have imported the update set and am now attempting to add the action in line 3 but am confused as to what I should be putting into the action fields.

 

ChrisPetrone_3-1732127500867.png

 

Is the table name correct? I am trying to grab a number from a Work Order table when they breach SLA [x_nuvo_eam_facilities_work_orders].

 

Any help is appreciated.

1 REPLY 1

JenniferRah
Mega Sage

I have a similar action in my instance. I found it on the community, but I can't find the post now or I would give credit to the originator. Ours is just called Generate Link and here's what it looks like:

 

JenniferRah_0-1732129272472.png

JenniferRah_1-1732129321992.png

 

The code is this:

(function execute(inputs, outputs) {
  var link = "<a href='" + gs.getProperty('glide.servlet.uri') + inputs.table_name + "?sys_id=" + inputs.unique_id + "'>" + inputs.text_for_link + "</a>";
  outputs.link_code = link;
})(inputs, outputs);