function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sbarstowsbarstow 

Cloning via the API

Can we use the clone function via the API? Dont see it anywhere, but could be blind.

Obviously we can do the poor mans clone by doing an object copy and inserting.
DevAngelDevAngel

There is no clone function.  As you correctly remarked, you can do this by simply obtaining the record you want to clone and then removing the id before sending the record back in a create call.