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
gaganSFDCgaganSFDC 

how to fetch custom object from salesforce using migration tool ant ?

hi
 this the first time i am using ANT, dont know how to use it plz tell me step by step if possible
Amit Chaudhary 8Amit Chaudhary 8
Please check below post for same
1) https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/manifest_samples.htm
2) https://salesforce.stackexchange.com/questions/131809/using-ant-migration-tool-no-custom-object-deployed
Standard Objects
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Account</members>
        <name>CustomObject</name>
    </types>
    <version>40.0</version>
</Package>

All Custom Objects
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>CustomObject</name>
    </types>
    <version>40.0</version>
</Package>

Let us know if this will help you