I am trying to create a custom action button that will duplicate an entire entry except for the Revision field and increase the value of that field by one.
I managed to code for the increase in revision value. However, I’m not sure what function to use to duplicate the rest of the entries.
I tried using the db.entryCopier function but it returns a no record found error. I am assuming it doesn’t work if the table path is the same?
Or do I have to use the insertAPIEntry()? If so, how do I populate the new Entry with the previous fields data?
Thank you.