To add worknotes in application (cmdb_ci_business_app)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 02:40 AM
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);
0 REPLIES 0