Try to use Force.com migration toolkit. Download custom object definition. Copy the file and rename it. Rename the object in the new xml-file and upload it. Never tried it though...
I don't know what you'e after but in UI there is a standard [Clone] button. In Apex you can use the sObject clone() method: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_sobject.htm#apex_System_SObject_clone
Try to use Force.com migration toolkit. Download custom object definition. Copy the file and rename it. Rename the object in the new xml-file and upload it. Never tried it though...
Download custom object definition.
Copy the file and rename it.
Rename the object in the new xml-file and upload it.
Never tried it though...
All Answers
In Apex you can use the sObject clone() method: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_sobject.htm#apex_System_SObject_clone
Download custom object definition.
Copy the file and rename it.
Rename the object in the new xml-file and upload it.
Never tried it though...