I have found some issues with handling MOC Duplicates.
I have deployed the script PLUSGMOC.DUPLICATE to add some functionality.
Custom attributes that I don't want to copy have been added to the Exclude Data list on the PLUSGMOC object.
The script clears some standard fields such as Temporary Until Date etc.
The script also adds the Reviewers (PLUSGMOCRVLST) and Approvers (PLUSGMOCAPPRLIST) from the mbo (original MOC) to dupmbo (duplicated MOC).
However, the "Comments" field on Pre-Start, Post-Start & Closure Actions is not being reset. I have tried both setValueNull() and SetValue("COMMENTS","") but this appears to be ignored.
Also, the Classification is copied and I would like to either not copy it or at least set the ALNVALUE on WORKORDESPEC to null.
------------------------------
Simon Barnes
Principal Consultant
BPD Zenith
Calgary, Canada
------------------------------