To add worknotes in application (cmdb_ci_business_app)

Aarti01
Tera Contributor

Hello,

I have implemented a business rule to update the worknotes in a business application (cmdb_ci_business_app) whenever the application URL is added or changed. However, it appears that the rule is not functioning as expected, even when attempting to add a comment such as "Hi."

Could you please assist me in identifying where I might be encountering issues?

 

Business rule Script below:

 

(function executeRule(current, previous /*, g*/) {

        var gr = new GlideRecord('u_cmdb_ci_business_app');
        if (gr.get(current.business_application)) {

            var newWorkNotes = "Hi!";
            gr.work_notes = newWorkNotes;
            gr.update();
        }
})(current, previous);
 
Aarti01_0-1701168003402.png

 

0 REPLIES 0