How to Connect ANT tool to salesforce org

How to Connect ANT tool to salesforce org

Spread the love

How to Connect ANT tool to salesforce org

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

For that enter into files where you extracted salesforce ant folder

Steps to know how to connect ANT tool to salesforce org

1. Ant-Salesforce — sample — open with notepad
2. Replace sf.username: [email protected]

Note : sf.serverurl = change url into if you want to use for sandbox

3. Create a folder named as a target in ANT’s Installation folder inside the bin
4.Copy and paste build.xml into a new target folder
5. create a package.xml in your new folder target
6. To get all class into your org we need to use ant retrieveUnpackaged
  check folder retrieveTarget to check your classes and trigger
7. Open Command Prompt in your system and navigate to ANT path type
  Ant retrieveTarget
8. To get class from org.

Hurry !! 😎 😎 😎 Now retrieve all classes from org into the local machine and we have connect ant tool to salesforce org .

More info :


Add comment

Your Header Sidebar area is currently empty. Hurry up and add some widgets.