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
IZavalunIZavalun 

Can I clone the existing Custom Object?

If I want to mimic the existing custom object is there a fast way to do it?
sfdcfoxsfdcfox
You can't clone custom objects yet, so you have to work around this limit. Depending on the size of the custom object, you have two choices:

1. If the object is small (say 10 to 20 fields), it's faster to just re-create it manually.

2. The other method is to take the following steps:
 a) Setup | Exchange | Shared Apps.
 b) Create a new package, adding the custom object and its fields.
 c) Upload to the appExchange.
 d) Install in a Developer Edition.
 e) Rename the custom object.
 f) Create a new package in the developer, adding the custom object and its fields.
 g) Upload to the AppExchange.
 h) Install back into your production account.

Depending on the time to upload, this process takes about 3-5 minutes, and can save you hours recreating a custom object.
IZavalunIZavalun

Thanks a lot.

This is really nice approach when ehere are more than hundred fields in the object