Business Rule to Create hyperlink in Work notes

mballinger
Mega Guru

Hello,

I have an onBefore() BR and I need to create a clickable link in the work notes. I have a script, but it is not working. Not sure what I am doing wrong.

This is what I have:

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

    // Add your code here
    current.work_notes =' [code]<a href="https://www.servicenow.com">ServiceNow.com</a>[/code]';

})(current, previous);

Thanks!

1 ACCEPTED SOLUTION

Hi,

Furthermore, please check your system property value for: glide.ui.security.allow_codetag

This should be set to "true". Default, it is true, but perhaps someone could have changed it on your instance.

https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/field-administration...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

7 REPLIES 7

Here is the screenshots of the BR:

find_real_file.png

find_real_file.png

Here is the screenshot of the sys_property:

find_real_file.png

I updated the value of the sys_property to "true" and it works! Thanks @Allen Andreas !!!

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 ...