<MBONAME>.DUPLICATEor example in this case we will name it WORKORDER.DUPLICATE to intercept the duplicate event. The mbo is this mbo. dupmbo is duplicated mbo. lets say we want to copy a value from workorder to the new duplicated workorder. create a script with this name, <MBONAME>.DUPLICATEin our example we will name it WORKORDER.DUPLICATE to intercept the duplicate event.
dupmbo.setValue("copiedfrom", mbo.getString("wonum"))