Connect ANT tool to salesforce org

In Previous Post we have discussed about how to install ANT tool for windows. Now we need to connect your salesforce org with ANT in your local machine. To deploy and retrive data from salesforce org


For that enter into files where you extracted salesforce ant folder

  1. Ant-Salesforce –> sample –> open build.properties with notepad
  2. Replace sf.username: forcelearnXYZ@gmail.com
    sf.password: XXXXXXXXXXXXXXXXXXXXXXX

Note : sf.serverurl = https://login.salesforce.com change url into https://test.salesforce.com if you want to use for sandbox


  1. Create a folder named as target in ANT’s Installation folder inside bin
    C:\apache-ant-1.10.2-bin\apache-ant-1.10.2\bin\

  2. Copy and paste build.xml into new target folder

  3. create a package.xml in your new folder target

  4. To get all class into your org we need to use ant retrieveUnpackaged

    check folder retrieveTarget to check your classes and trigger

  5. Open Command Prompt in your system and navigate to ANT path type

    Ant – retrieveTarget

  6. To get class from org.

Hurry !! 😎 😎 😎 Now retrieve all class from org into local machine.


Download: SalesforceQA


Please comments us for more updates and share to other to help.
Keep Visiting us for more updates
Like us for more updates
Fb Page : ForceLearn
keep share to help others  πŸ˜Ž πŸ˜Ž πŸ˜Ž