Cloning existing records within Object Script Trigger

Posted by Rollbase User on 22-Mar-2013 17:46

Is there any API to clone existing records automatically within Object Script Triggers?

All Replies

Posted by Admin on 24-Mar-2013 23:09

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

Posted by Admin on 24-May-2013 07:49

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.

Posted by Admin on 26-May-2013 23:43

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.

This thread is closed