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

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

 

Hi Chuck,

 

Thank you for providing the useful links.

I checked and found that the property - glide.ui.security.allow_codetag  was set to false.

Description of the property: Allow support for embedding HTML code by using the [code] tag.

Hence it was not accepting [code].

I set the value of the property to true and it worked.

ServiceNerd
Giga Guru
Giga Guru
In this follow on vid from sync of work notes between Request Item and Catalog task we look at embedded hyperlinks in work notes..you can do it on additional comments too! or to give it a better name, journal entry. We add a simple hyperlink out to a task record in ServiceNow and make the work ...