Transfer comments and work notes to new record

JJG
Kilo Guru

Hello,

I have a UI action that transfers field values from a record to a new record in another table. I would like to transfer the comments and work notes to the new record but it does not seem to be working (See pics below)

Before

find_real_file.png

After

find_real_file.png

UI Action:

 var gr = new GlideRecord('x_utsll_candidate_candidate_outreach');

gr.comments_and_work_notes = current.comments_and_work_notes;

gr.insert();

 

I have used this code to transfer other field values and it works, just not for the comments_and_work_notes field.

1 ACCEPTED SOLUTION

JJG
Kilo Guru

gr.work_notes = current.work_notes.getJournalEntry(-1); 

This worked ^

View solution in original post

6 REPLIES 6

That does not work either

JJG
Kilo Guru

gr.work_notes = current.work_notes.getJournalEntry(-1); 

This worked ^