fasadvancouver.blogg.se

Ant migration tool for salesforce
Ant migration tool for salesforce







ant migration tool for salesforce
  1. #ANT MIGRATION TOOL FOR SALESFORCE HOW TO#
  2. #ANT MIGRATION TOOL FOR SALESFORCE INSTALL#
  3. #ANT MIGRATION TOOL FOR SALESFORCE UPDATE#
  4. #ANT MIGRATION TOOL FOR SALESFORCE ZIP#

Run the command “retrieveUnpackaged” in the command prompt as shown below, The above mentioned package is given in the below screen shot, your package.xml should look like this more readable format.īUILD.XML a portion of the file is captured below

ant migration tool for salesforce

Source: your package.xml will be as follows

#ANT MIGRATION TOOL FOR SALESFORCE HOW TO#

Let me give an example to show how to work with ant, say suppose you want to deploy 4 custom fields of a custom object, one page layout and a profile from source to destination. NOTE: Before running the command “ANT – VERSION” make sure that you have changed the directory to the path where you have downloaded the Force.Com files. ant –version, output should be as follows,Īpache Ant version 1.7.0 compiled on December 13 2006 Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)Ģ. Java(TM) SE Runtime Environment (build 1.7.0_21-b11)

  • java –version, the output should be as follows,.
  • Once your machine gets restarted run the below mentioned command in the command prompt,
  • VALUE: add this “/ %ANT_HOME%\bin %JAVA_HOME%\bin %PATH%”.
  • #ANT MIGRATION TOOL FOR SALESFORCE UPDATE#

  • Update the already existing environmental variable “PATH” as follows.
  • Go to Computer properties and create 2 system environmental variables as follows
  • You will get the folder which contains the 3 major files,.
  • ant migration tool for salesforce

  • Some files will get downloaded into your system.
  • Go to Setup in Salesforce, search for “Tools” and click on the Migration Tool.
  • #ANT MIGRATION TOOL FOR SALESFORCE ZIP#

  • Download the ANT with zip folder so that you can extract easily.
  • #ANT MIGRATION TOOL FOR SALESFORCE INSTALL#

    Download the latest JDK Files and install in the C drive “Program Files”.

    ant migration tool for salesforce

    The 3 major files that is required to work with migration are as follows The below picture shows the graphical representation of the deployment Once you have retrieved the components from the source org, all the component files will be downloaded into your machine and stored in the path as you specified. In the above screen shot the command “ant deployUnpackaged” is used to deploy the components, which we are retrieved using the command, ant retrieveUnpackaged : which retrieves all the mentioned components from the source org.ant –p : which displays all the set of Targets.The two major commands that are used in the above screen shot are:. Similarly in the above screen shot that’s marked in yellow is a command that is used to retrieve all the components that is mentioned in the package.xml. In the above screen shot, the portion that is marked in white contains all the Targets. A sample command is given in the below screen shot. ***********************************************************************ĪNT Stands for “Another Neat Tool”, this tool is used in Salesforce for migration of the components from one environment to another say for example “SIT” org to “UAT” org or DEV to SIT or even for production orgs, using the xml files that we will build which contains the required components that we want to migrate.ĪNT tool basically runs in the command prompt, we need to run the required commands to accomplish our task.









    Ant migration tool for salesforce