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.

Add hyperlink at the script action for additional comments

susunow
Tera Contributor

Hi, I would like to add a hyperlink to this var comment code below: 

 

current: 

 

var comments = "tickets have been successfully created. Please refer to the RITM number below. For any further inquiries, please send a new email to abc@defg.com. This ticket is now resolved.\n";
 
to be:
 
var comments = "tickets have been successfully created. Please refer to the RITM number below. For any further inquiries, please click here<(hyperlink). This ticket is now resolved.\n";
 
Thanks !
1 REPLY 1

SindhuKM
Tera Guru

Hi ,
To include a hyperlink in your comment string in ServiceNow, you can use HTML syntax for the link. Since comments in ServiceNow often display in a way that processes HTML, you can format it like this:

var comments = "Tickets have been successfully created. Please refer to the RITM number below. For any further inquiries, please <a href='https://yourlink.com' target='_blank'>click here</a>. This ticket is now resolved.\n";

Please Hit Like, if it resolves your question.
Thanks,
Sindhu K M