How to set a value in work notes field
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2016 12:12 PM
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 ?
Labels:
- Labels:
-
Scripting and Coding
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2016 02:54 AM
Is gr.work_notes='some value'' not working?
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2017 09:20 AM
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 ' ;