The CreatorCon Call for Content is officially open! Get started here.

How to add hyperlink in Agent workspace?

chiranjeevi thi
Tera Contributor

Hi,

 

We have a new requirement to add a info message on agent work space. we are getting below info message on ServiceNow hr task record but not able to display it on agent workspace. can any one help this solution.

 

chiranjeevithi_0-1669270375379.png

 

3 REPLIES 3

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @chiranjeevi thi ,

You can add info message as below and link as well in that :- Create Br on table after insert/update as per your requirement

For SP portal add link like : var link = '<a href="/sp">Service Portal</a>';

GunjanKiratkar_0-1669271273642.png

 

(function executeRule(current, previous /*null when async*/ ) {

    // Add your code here
    var link = '<a href="incident_list.do">List Link</a>';
    var message = gs.getMessage('Incident Resolved') + ' ' + link + ' ';
    gs.addInfoMessage(message);

})(current, previous);

 

It will show you like below :-

GunjanKiratkar_1-1669271348303.png

 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

chiranjeevi thi
Tera Contributor

Hi Gunjan,

when i was writing a business rule on backend of ServiceNow Hr task record it is showing two info message.there is one another display business rule i dont want after business rule which i have created no to be run on backend record.

 

chiranjeevithi_0-1669291290479.png

 

Hi @chiranjeevi thi ,

Try with before Business rule.


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy