- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2018 12:31 AM
Hello,
we are on Jakarta.
How do I add Text to WorkNotes Field on RITM so that they show up on the form?
I tried following code but it doesn't show up on the screen. Please advise.
Thanks,
var req4 = new GlideRecord('sc_req_item');
req4.addQuery('sys_id',workflow.scratchpad.ritm_id);
while(req4.next()){
req4.work_notes = (msg);
req4.update();
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2018 12:35 AM
Try with
req4.work_notes.setJournalEntry(msg);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2018 12:35 AM
Try with
req4.work_notes.setJournalEntry(msg);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2018 01:07 AM
Thanks Palmen.
That helped.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2018 12:35 AM
Hi, rajanmehta
It seems like you forgot to do req4.query();
var req4 = new GlideRecord('sc_req_item');
req4.addQuery('sys_id',workflow.scratchpad.ritm_id);
req4.query(); // don't forget to query
while(req4.next()){
req4.work_notes = (msg);
req4.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2018 01:06 AM
Yes you are correct.
I forgot to add query statement.
Thanks,