Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Using hyperlink in work notes

CJPeterson
Tera Expert

Hi All, 

I am having some trouble with my script. I am creating a incident from a ticket but I need to update a work note to the ticket with details of the created incident (something like Incident  # has been created)

I am using "Incident [code]<a href="incident_url" target="_blank">INC_number</a>[/code] has been created. But that does not seem to be working and not redirecting to incident. 

Could someone please advise on what I may be missing? 

CJPeterson_0-1709233466137.png

CJPeterson_1-1709233500135.png

 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@CJPeterson Update your worknote as follows.

 

current.work_notes = 'Incident [code]<a href="'+gs.getProperty('glide.servlet.uri')+'nav_to.do?uri=incident.do?sys_id='+sysID+'" target="_blank">INC_number</a>[/code] has been created.';

 

Hope this helps.

View solution in original post

6 REPLIES 6

CJPeterson
Tera Expert

Thank you @Sandeep, this worked 

Faty
Tera Contributor

Try this - 

[code]<a href="">LINK</a>[/code]