How to set a value in work notes field

dkv2
Kilo Explorer

How to check all active incident and set into inactive when we run this in second time

var gr = new GlideRecord('incident');

gr.addQuery('active', true);

gr.query();

while (gr.next()) {

      gr.active = false;

      gr.update();

}

 

and I have a query how to set a value in work notes field ?

2 REPLIES 2

Kalaiarasan Pus
Giga Sage

Is gr.work_notes='some value'' not working?


Community Alums
Not applicable

Hi, since this is not solved.   When I assign to Journal fields I have found that you need to use a += assignment such as:



gr.work_notes += ' this works for me ' ;