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
WesGrayWesGray 

Duplicate Custom Object

I have a custom object with many fields.  I need to make a second custom object which is almost identical.  Is there some easy way to do this so that I don't have to use the web interface to add each field manually?
JonPJonP
Using the command-line Force.com Migration Tool or the Eclipse-based Force.com IDE, you can retrieve your custom object as a metadata XML file, copy it to a new file and change its name/other content, and deploy it as a new custom object.
jpizzalajpizzala
Why do you need to create an almost clone of the original custom object?  Will multiple record types/page layouts make your life any easier (Enterprise or above)?