

You can find sample of this file from "sample\codepkg" folder from salesforce_ant_37.0.zip ** mkdir retrieve_folder, this line is just needed if you need the script to create the folder prior retrieval, you can change retrieve_folder to other folder as you want. The concept here is you need to retrieve the metadata from source org., then deploy it to target org. In this file, you need to define the target. This file also available in "sample" folder from salesforce_ant_37.0.zip In this file, you need define: serverurl, username, and password. You can find sample of this file from "sample" folder from salesforce_ant_37.0.zip Where? to store variables: username, password, server url Extract salesforce_ant_37.0.zip to a folder.

Edit Path variable to add value %ANT_HOME%\binĪpache Ant(TM) version 1.9.7 compiled on April 9 2016ĭownload Migration Tool from, at this moment it will bring me to, this may change based on Salesforce release. New variable ANT_HOME value C:\SFDC\Ant\apache-ant-1.9.7-bin\apache-ant-1.9.7 You need to add this into System variables from Advanced system settings from Control Panel\All Control Panel Items\System, click Environment Variables. zip archive file.ĭownload the file to a folder and extract it. Edit Path variable to add value %JAVA_HOME%\bin New variable JAVA_HOME value C:\Program Files\Java\jdk1.8.0_102 Go to Advanced system settings from Control Panel\All Control Panel Items\System, click Environment Variables. ** if your JAVA_HOME variable and environment Path have not configured, follow this step: Java HotSpot(TM) Client VM (build 25.45-b02, mixed mode, sharing) Java(TM) SE Runtime Environment (build 1.8.0_45-b15) Once installed successfully, check from command prompt:

** if you do not have JDK installed, download latest JDK from
