To duplicate a row and refer back to original row

To duplicate a row and refer back to original row

I wanted to have a simple script to duplicate a row, but the duplicated row has to refer back to the original row.  So a new field called ORIGINAL_ID is created to hold the value of the ID of the original row... is there a generic ZOHO function to duplicate a row and then I can customize it?