The Zurich release has arrived! Interested in new features and functionalities? Click here for more

hyperlink in business rule

punitchourey
Tera Contributor

Hi All,

we have created a business to update the activity of incident whenever there is an update on incident task.

whenever work notes and additional comments of incident task gets updated, we are copying the respective work notes and additional comments of incident task(s) to the work notes and additional comments of incident. 

Incident activity is looking like below

ex: Work Notes of INCTASK01: <abc>

Additional Comments of INCTASK01: <xyz>.

 

We want task number in this activity of Incident, in this INCTASK01 to be a hyperlink. 

We tried to do, it is not treating that as a link and displaying whole text as below:

Work Notes of  <a href=" https://dev55548.service-now.com//incident_task.do?sys_id=9d21940f37229b8046c5c93754990e5c ">ITASK0106208</a>: qwqwqw

 

Please suggest possible solution.

Note: We are on Istanbul version.

 

Thanks,

Punit

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Have you taken a look at this? Docs: Render journal field entries as HTML

Can you test it manually (enter the code tags and HTML manually) before putting it in  BR?

Have you also taken a look to see if you have validation on? Docs: Validate HTML in Journal fields

Is the HTML Sanitizer involved? Docs: HTML Sanitizer

 

View solution in original post

7 REPLIES 7

Harish KM
Kilo Patron
Kilo Patron

try like below

current.<field name>= 'https://'+ gs.getProperty('instance_name') + '.service-now.com/' + current.getTableName() + '.do?sys_id=' + current.sys_id;

Regards
Harish

punitchourey
Tera Contributor

Hi Harish,

 

I have already tried this. It gives me the whole link as a text.

 

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

Try enclosing the snippet in [code]. You may refer link once.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

punitchourey
Tera Contributor

hi Jaspal,

 

used [code] but still not working