HR Reclassify Case Transfer - How to copy Additional comments to the new created case like Work Notes?

MU
Kilo Contributor

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

 

1 ACCEPTED SOLUTION

Willem
Giga Sage
Giga Sage

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:

find_real_file.png

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

 

View solution in original post

3 REPLIES 3

Willem
Giga Sage
Giga Sage

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:

find_real_file.png

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

 

Did this solve the issue? If so, can you mark the answer as Correct so others can find it as well.

Kind regards,

Willem

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader