Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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?


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 ' ;