Can I add Work Notes to the Update Selected form?

Tony98
Mega Expert

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:

find_real_file.png

But when I go in to the form view, I don't see the Work Notes field:

find_real_file.png

Here's what I was hoping to see:

find_real_file.png

Any ideas?

Is there a way to bulk update a bunch of work order with a Work Note?

thanks

Tony

1 ACCEPTED SOLUTION

ark6
Mega Guru

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



find_real_file.png


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();


}


View solution in original post

7 REPLIES 7

ark6
Mega Guru

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



find_real_file.png


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();


}


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.


Yep - that will work nicely


thanks


Tony