how to update work note in incident

suresh kaliappa
Tera Expert

Hi All , 

 

I have 1 requirement i.e: in interaction table1 reference field is created and the reference field refers to incident table records. now in interaction table if transcript field is updated then the same data needs to add a   work note of the  associated incident record. so can someone help me how to do it. 

 

i used the following script. but it did not worked. 

 

var gr = new glideRecord('incident');

gr.addQuery('sys_id', current.u_reference field);

gr.query();

if(gr.next())

{

gr.work_notes = current. transscript.toString();

gr.update();

}

 

 

 

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Suresh,

You can try using

gr.work_notes.setJournalEntry(current. transscript.toString());

//ensure the transscript field has valid dictionary name used correctly

View solution in original post

2 REPLIES 2

Jaspal Singh
Mega Patron
Mega Patron

Hi Suresh,

You can try using

gr.work_notes.setJournalEntry(current. transscript.toString());

//ensure the transscript field has valid dictionary name used correctly

Thank you for your fast response jaspal singh