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
rameshramesh 

How clone custom fields from standard object to custom object

 In contact object I had 280 fields. I  want 280fields with my custom object is it possible with out code and manual creation 
VinayVinay (Salesforce Developers) 
Hi Saki,

You can create package.xml file and retrieve something like below.
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>pkg</fullName>
    <types>
        <members>standardobject</members>
        <name>CustomObject</name>
    </types>
    <version>54.0</version>
</Package>

You can re-deploy package again by changing name of member tag to custom object.
<members>customobject</members>

Please mark as Best Answer if above information was helpful.

Thanks,