Hi, I thought there was an action in button automation to clone current entity (and being able to updare some field), but there’s not - maybe a feature request , so I found this thread of 3 years ago where Polina showed the JS code to duplicate a record. I used that code as automation action and it seemed to work but at every execution in the activity log, the action is reported as failed with
Failed to execute Action "Script": (intermediate value) is not iterable
followed by the list of field that have been (correctly) copied into the cloned record…
What is wrong or what should I do to catch the problem?
I don’t know if in the meantime there is a simpler method to clone a record (creating a new task and assigning each field value is not an optimal solution since my table has more than 20 fields).
Thanks!
one error is solved.
But there is another error I cannot understand how to solve: Cannot find type for ["$id"] param. Please, ensure that all parameters are passed as 'params' argument to query."
that refers to the query, in particular it seems the last line to throw the error