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?
Ah okay, I wasn’t sure if convert records could do this.
May I ask how do I use the hidden field with the formula to increase the value automatically upon each new revision? Can I use “Update values” to increase the value of the hidden field by 1?
There would be two field, let’s say A1 and A2, assigned formula A1+1 to field A2.
Convert records to the same sheet, all the fields are convert to same fields except for A1 and A2.
Just convet A2 to A1, for instance, the original version A1 should be 0, A2 would be 1.
Convert the first time, A1 would be 1, A2 would be 1+1=2 on new entry.