- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2017 12:48 PM
I have been asked to investigate how to add a common note to a bunch of work orders.
I'm looking at using the Update Selected method:
But when I go in to the form view, I don't see the Work Notes field:
Here's what I was hoping to see:
Any ideas?
Is there a way to bulk update a bunch of work order with a Work Note?
thanks
Tony
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2017 12:57 PM
I dont believe, journal fields appear while you try to update records like the way you are doing.
Two ways you can make it work though
1. Press on shift and select the records and mark the work notes
2. Or you can run a background script to do it.
var gr=new GlideRecord('incident');
gr.addEncodedQuery("IncidentININCXXXXX....") //Copy the query from the list
gr.query();
while(gr.next())
{
gr.work_notes="Your notes";
gr.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2017 12:57 PM
I dont believe, journal fields appear while you try to update records like the way you are doing.
Two ways you can make it work though
1. Press on shift and select the records and mark the work notes
2. Or you can run a background script to do it.
var gr=new GlideRecord('incident');
gr.addEncodedQuery("IncidentININCXXXXX....") //Copy the query from the list
gr.query();
while(gr.next())
{
gr.work_notes="Your notes";
gr.update();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2017 01:02 PM
The first method is the preferred method given by Arka. This is leveraged not only for updating work_notes but other fields like state and resolution as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2017 01:06 PM
Yep - that will work nicely
thanks
Tony