- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2020 09:26 AM
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
After
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2020 04:59 AM
gr.work_notes = current.work_notes.getJournalEntry(-1);
This worked ^
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2020 09:40 AM
Hi,
Kindly use the following line in your code to copy the work notes
gr.comments_and_work_notes= current.comments_and_work_notes.getJournalEntry(1);
Regards,
Munender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2020 10:21 AM
unfortunately, that does not seem to work either.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2020 09:50 AM
comments and work notes get logged to Sys Journal table. you will have to query that table, try looking at that table for more ideas...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2020 10:45 AM
try
var gr = new GlideRecord('x_utsll_candidate_candidate_outreach');
gr.initialize();
gr.comments_and_work_notes = current.comments_and_work_notes;
gr.insert();
Please mark my response as correct and helpful if it helped solved your question.
-Thanks