ForceLearn

Connect ANT tool to salesforce org

Sharing is caring!

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: [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 target in ANT’s Installation folder inside bin
C:\apache-ant-1.10.2-bin\apache-ant-1.10.2\bin\

4. Copy and paste build.xml into 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 class from org into local machine.

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  🙂 🙂 🙂

forcelearn

Like Us for FB Page

Trailhead Profile

 

Subscribe Us

 Subscribing I accept the privacy rules of this site