Is there any API to clone existing records automatically within Object Script Triggers?
Hi Bakar,
There are no clone methods in the APIs; the best thing to do is retrieve an entire record and create a new one using all of its data. We will consider adding a clone method to the REST API in the future.
Regards
Matt
Hi Matt,
The CreateRecord API works fine, but what if the record contains a file upload field? Currently, the CreateRecord API does not support the copy/clone of the uploaded file.
I think you may use a create new record trigger and a data map, it might give you the ability to clone even file upload fields via said map.
You could try this approach.
Hope this helps.