ForceLearn
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 build.properties with notepad
2. Replace sf.username: [email protected]
  sf.password: XXXXXXXXXXXXXXXXXXXXXXX

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

3. Create a folder named as a target in ANT’s Installation folder inside the bin
   C:\apache-ant-1.10.2-bin\apache-ant-1.10.2\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 : https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool.htm

ForceLearn

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.

Most popular

Most discussed