- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 03:45 AM
when agent enter work notes or comments in TASK it copies to its RITM, is it possible to copy the same comments/work notes from TASK to REQUEST.
I have written script in BR
(function ExecuteRule(current.previous /*null when async*/)
{
var gr=new GlideRecord('sc_request);
if(gr.get(current.parent))
{
gr.work_notes=current.work_notes;
gr.update();
}
}
)(current,previous);
its not working, can someone provide solution for this.
PFA
TASK and RITM are sync not for REQUEST
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 03:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 03:50 AM
Use this instead
gr.work_notes=current.getJournalEntry(1);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 03:59 AM
hi anurag,
thanks for the help, it didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 04:27 AM
apoligies for goof up
gr.work_notes=current.work_notes.getJournalEntry(1);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 01:36 PM
is there possibility to show RITM along with comments.
thanks