- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2020 09:35 PM
Hi everyone,
I'm looking to copy across Additional Comments when a case is transferred to a new COE with an existing number (Reclassify Case Transfer). However, currently, the Reclassify Case Transfer Script Include only allows for Work Notes to be copied across to the new case created along with few other fields.
How do I configure additional comments to be copied across as well when a case is transferred to a new COE with an existing case number?
Please advise.
Many thanks,
MU
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2020 11:13 PM
Hi MU,
Comments AND worknotes will be copied over OOTB. What might be confusing is that the function is called "_copyWorkNotes". But look at the comment:
And just to be safe I opened the function:
_copyWorkNotes: function(originalRecord, newRecord) {
var originalWorkNotes = originalRecord.work_notes.getJournalEntry(-1);
var originalComments = originalRecord.comments.getJournalEntry(-1);
newRecord.work_notes = originalWorkNotes;
newRecord.comments = originalComments;
},
You can see it gets work_notes and comments. Comments is the Additional comments field.
Please mark as Helpfull👍 and Correct✅ if you think it is! 🙂
Kind regards,
Willem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2020 11:13 PM
Hi MU,
Comments AND worknotes will be copied over OOTB. What might be confusing is that the function is called "_copyWorkNotes". But look at the comment:
And just to be safe I opened the function:
_copyWorkNotes: function(originalRecord, newRecord) {
var originalWorkNotes = originalRecord.work_notes.getJournalEntry(-1);
var originalComments = originalRecord.comments.getJournalEntry(-1);
newRecord.work_notes = originalWorkNotes;
newRecord.comments = originalComments;
},
You can see it gets work_notes and comments. Comments is the Additional comments field.
Please mark as Helpfull👍 and Correct✅ if you think it is! 🙂
Kind regards,
Willem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2020 07:24 PM
Did this solve the issue? If so, can you mark the answer as Correct so others can find it as well.
Kind regards,
Willem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2020 11:28 PM
Hi MU,
additional comments are already copied over as you can refer this script include as suggested earlier.
Are you saying it it not working as expected?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader