Copying Data

Worknotes

Copying the full set of work notes to another area

//Gets all worknotes associated with current
var notes = current.work_notes.getJournalEntry(-1);

var newNotes = "Copied notes ::\n" + notes;

Currency Fields

Copying old funds in current to new funds in another field

bCase.new_funds = bCase.new_funds.getReferenceCurrencyCode() + ';' + current.old_funds.getReferenceValue();