SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Downloaden Sie, um offline zu lesen
Getting Started with SalesForce CRM
Working Force.com Migration Utility

Description:
BISP is committed to provide BEST learning material to the beginners and advance learners.
In the same series, we have prepared a complete end-to end Hands-on Beginner’s Guide for
SalesForce. The document focuses on force.com migration utility. Join our professional
training program and learn from experts.

History:
Version Description Change
0.1
Initial Draft
0.1
Review#1

www.bispsolutions.com

Author
Chandra Prakash Sharma
Amit Sharma

www.bisptrainigs.com

Publish Date
10th Oct 2013
10th Oct 2013

www.hyperionguru.com

Page 1
Contents
......................................................................................................................................................... 2
Force.com Migration Tool Overview .................................................................................................3
Understanding Metadata API :....................................................................................................3
Installing the Force.com Migration Tool..........................................................................................3
How set ant path :....................................................................................................................... 4
...................................................................................................................................................... 5
Using the Force.com Migration Tool ..............................................................................................5
SalesForce Connection Information:...........................................................................................5
Constructing a Project Manifest :................................................................................................6
Describing Metadata Types :......................................................................................................7
Listing Components for a Metadata Type :................................................................................8
Creating Retrieve Targets :.........................................................................................................9
Retrieving Metadata from a SalesForce Organization :................................................................10

www.bispsolutions.com

www.bisptrainigs.com

www.hyperionguru.com

Page 2
Force.com Migration Tool Overview
The Force.com Migration Tool is a Java/Ant-based command-line utility for moving metadata
between a local directory and a SalesForce organization.
 Development projects where you need to populate a test environment with large amounts of
setup changes — Making these changes using a Web interface could take a long time.
 Multistage release processes — A typical development process requires iterative building,
testing, and staging before releasing to a production environment. Scripted retrieval and
deployment of components can make this process much more efficient.
 Repetitive deployment using the same parameters — You can retrieve all the metadata in
your organization, make changes, and deploy a subset of components. If you need to repeat
this process, it's as simple as calling the same deployment target again.
 When migrating from stage to production is done by IT — Anyone that prefers deploying in a
scripting environment will find the Force.com Migration Tool a familiar process.

Understanding Metadata API :
Metadata API contains a set of objects that manage setup and customization information
(metadata) for your organizations,
and the SOAP calls that manipulate those objects. With Metadata API you can:
 Work with setup configuration as XML metadata files
 Migrate configuration changes between organizations
 Create your own tools for managing organization and application metadata

Installing the Force.com Migration Tool
Before you install the Force.com Migration Tool you will need Java and Ant installed on your local
machine.
you can download on this link : http://ant.apache.org/ and also need JDK 1.6.x or later. .
http://www.oracle.com/technetwork/java/javase/downloads/index.html
1. Install Java and Ant.
2. Login to a SalesForce organization and download the Force.com Migration Tool, as described in
Installing the Force.com
Migration Tool.
download the Force.com Migration Tool from a SalesForce organization.
Click on Setup > Develop > Tools, then click Force.com Migration Tool. see below.

www.bispsolutions.com

www.bisptrainigs.com

www.hyperionguru.com

Page 3
Save the .zip file locally and extract the contents to the directory of your choice.
Copy ant-salesforce.jar and paste into your Ant installation's lib directory. The lib directory is located
in the
root folder of your Ant installation.
After install Jdk check java version open command prompt then type java -version, you can see
below.

How set ant path :
Syntax
SET ANT_HOME=my_path_to_ant_folder

Example
Ex : SET ANT_HOME= D:cp
sharmaswapache-ant-1.9.3-binapache-ant1.9.3

SET JAVA_HOME=my_path_to_jdk_folder
SET PATH=%PATH%;%ANT_HOME%/bin;
%JAVA_HOME%bin;

Ex: C:Program FilesJavajdk1.7.0_45
Ex : SET PATH=%PATH%;%ANT_HOME
%/bin;%JAVA_HOME%bin;

After set path you can check ant version by using this syntax.
syntax : ant -version

www.bispsolutions.com

www.bisptrainigs.com

www.hyperionguru.com

Page 4
Using the Force.com Migration Tool
The Force.com Migration Tool is a Java/Ant-based command-line utility for moving metadata
between a local directory and a SalesForce organization.
The general procedure you will follow when using the Force.com Migration Tool to copy metadata
from one SalesForce organization to another is:
1) Enter credentials and connection information for source SalesForce organization in
build.properties
2) Create retrieve targets in build.xml
3) Construct a project manifest in package.xml
4) Run the Force.com Migration Tool to retrieve metadata files from SalesForce
5) Enter credentials and connection information for destination SalesForce organization in
build.properties
6) Run the Force.com Migration Tool to deploy metadata files or deletions to SalesForce

SalesForce Connection Information:
1. Go to the location where you extracted the Force.com Migration Tool files and open the sample
subdirectory.
2. Open build.properties in a text editor and substitute a valid SalesForce username and password.
If you are using a security token, paste the 25-digit token value to the end of your password.
you can see below.

www.bispsolutions.com

www.bisptrainigs.com

www.hyperionguru.com

Page 5
Constructing a Project Manifest :
The package.xml file is a project manifest that lists all the components you want to retrieve or
deploy in a single request. You can retrieve or deploy only a single package at a time.
The following elements may be defined in package.xml :
Name
Description
<fullName>
The name of the server-side package to deploy into. If the <fullName> field is
omitted, components will not be assigned to a package when deployed, and
will be in the unpackaged package.
<types>
This element contains one or more <members> tags and one <name> tag,
and is used to list the metadata components of a certain type to retrieve or
deploy.
<members>
The full name of a component. There is one <members> element defined for
each component in the directory. You can replace the value in this member
with the wildcard character * (asterisk) instead of listing each member
separately.
<name>
There is one name defined for each component type in the directory. This is
a child element of <types>.
<version>
The Metadata API version number of the files being retrieved or deployed.
When
deploying, all the files must conform to the same version of the Metadata
API.
Specifying Standard Objects :
To retrieve standard objects and/or custom fields on standard objects, you must name the
component in package.xml.

www.bispsolutions.com

www.bisptrainigs.com

www.hyperionguru.com

Page 6
Specifying Named Components :
To retrieve a component, specify the type of component in the <name> element and declare each
component to be retrieved or deployed in the <members> element. The following is a sample
package.

Specifying all Components of a Type :
To retrieve all components of a particular type, use the wildcard symbol (*). For example, to retrieve
all custom objects:

Specifying Standard Objects :
To retrieve standard objects and/or custom fields on standard objects, you must name the
component in package.xml.

Describing Metadata Types :
www.bispsolutions.com

www.bisptrainigs.com

www.hyperionguru.com

Page 7
Field
username

password

serverurl

apiVersion
resultFilePath

trace

Description
Required. The SalesForce username for login. The username associated
with this
connection must have the "Modify All Data" permission.
Required. The password you use to log into the organization associated with
this project. If you are using a security token, paste the 25-digit token value
to the end of your password.
Optional. The SalesForce server URL (if blank, defaults to
login.salesforce.com).
To connect to a sandbox instance, change this to test.salesforce.com.
Optional. The API version to use for the metadata. The default is 29.0.
Optional. The path of the output file where results are stored. The default
output is the console. Directing the output to a file makes it easier to extract
the relevant information for your package.xml manifest file.
Optional. Defaults to false. Prints the SOAP requests and responses to the
console.
Note that this will show the user's password in plain text during login.

Get the list of metadata types enabled for your organization, specify a target in the build.xml file
using

Listing Components for a Metadata Type :
The listMetadata target retrieves property information about metadata components in your
organization. This target is useful when you want to identify individual components in package.
Field
Description
username
Required. The SalesForce username for login. The username associated with
this connection must have the “Modify All Data” permission.
password
Required. The password you use to log into the organization associated with
this project. If you are using a security token, paste the 25-digit token value to
the end of your password.
serverurl
Optional. The SalesForce server URL (if blank, defaults to
login.salesforce.com).
To connect to a sandbox instance, change this to test.salesforce.com.
metadataType
Required. The name of the metadata type for which you are retrieving
property
information; for example, CustomObject for custom objects, or Report for
custom
reports.
folder
The folder associated with the component. This field is required for
components that use folders, such as Dashboard, Document, Email Template,
www.bispsolutions.com

www.bisptrainigs.com

www.hyperionguru.com

Page 8
apiVersion
resultFilePath

trace

or Report.
Optional. The API version to use for the metadata. The default is 29.0.
Optional. The path of the output file where results are stored. The default
output is the console. Directing the output to a file makes it easier to extract
the relevant information for your package.xml manifest file.
Optional. Defaults to false. Prints the SOAP requests and responses to the
console.
Note that this will show the user's password in plain text during login.

Get property information for components of one metadata type, such as CustomObject, specify a
target in the build.xml file using

Creating Retrieve Targets :
The build.xml file specifies a series of commands to be executed by Ant. Within the build.xml file
are named targets that process a series of commands when you run Ant with a target name. The
following parameters may be set for each <sf:retrieve> target :
Field
Description
username
Required. The SalesForce username for login. The username associated with
this connection must have the “Modify All Data” permission.
password
Required. The password you use to log into the organization associated with
this project. If you are using a security token, paste the 25-digit token value to
the end of your password.
serverurl
Optional. The SalesForce server URL (if blank, defaults to
login.salesforce.com).
To connect to a sandbox instance, change this to test.salesforce.com.
retrieveTarget
Required. The root of the directory structure into which the metadata files are
retrieved.
packageNames
Required if unpackaged is not specified. A comma-separated list of the names
of
the packages to retrieve.
apiVersion
Optional. The API version to use for the metadata. The default is 29.0.
pollWaitMillis
Optional. Defaults to 10000. The number of milliseconds to wait between
attempts
when polling for results of the retrieve request.
maxPoll
Optional. Defaults to 20. The number of times to poll the server for the results
of
the retrieve request.
singlePackage
Optional. Defaults to true. This must be set to false if you are retrieving
multiple
www.bispsolutions.com

www.bisptrainigs.com

www.hyperionguru.com

Page 9
trace

unpackaged

unzip

packages. If set to false, the retrieved zip file includes an extra top-level
directory
containing a subdirectory for each package.
Optional. Defaults to false. Prints the SOAP requests and responses to the
console.
Note that this will show the user's password in plain text during login.
Required if packageNames is not specified. The path and name of a file
manifest
that specifies the components to retrieve.
Optional. Defaults to true. If set to true, the retrieved components are
unzipped.

Retrieving Metadata from a SalesForce Organization :
To retrieve Force.com components :
1. Open a command prompt.
2. Run Ant by specifying a target name in build.xml. If this is the first time you are running Ant, use
ant
retrieveUnpackaged to retrieve unpackaged components specified in package.xml.
Running Tests in a Deployment :
For deployment to a production organization, all the tests in your organization, except for those that
originate from installed
If the deployment includes components for any of the following metadata types, all the tests are
automatically run.
 ApexClass
 ApexComponent
 ApexPage
 ApexTrigger
 ArticleType
 CriteriaBasedSharingRule
 CustomDataType
 CustomField
 CustomObject
 DataCategoryGroup
 Flow
 InstalledPackage
 NamedFilter
 OwnerSharingRule
 PermissionSet
 Profile
 Queue
 RemoteSiteSettingRecordType
 Role
 SharingReason
www.bispsolutions.com

www.bisptrainigs.com

www.hyperionguru.com

Page 10
 Territory
 Validation Rules
 Workflow

www.bispsolutions.com

www.bisptrainigs.com

www.hyperionguru.com

Page 11

Weitere ähnliche Inhalte

Was ist angesagt?

New features-in-abap-7.4
New features-in-abap-7.4New features-in-abap-7.4
New features-in-abap-7.4swati chavan
 
Import export.odp
Import export.odpImport export.odp
Import export.odpOro Inc.
 
Basics of Solr and Solr Integration with AEM6
Basics of Solr and Solr Integration with AEM6Basics of Solr and Solr Integration with AEM6
Basics of Solr and Solr Integration with AEM6DEEPAK KHETAWAT
 
Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)Oro Inc.
 
07 Using Oracle-Supported Package in Application Development
07 Using Oracle-Supported Package in Application Development07 Using Oracle-Supported Package in Application Development
07 Using Oracle-Supported Package in Application Developmentrehaniltifat
 
Deepak khetawat sling_models_sightly_jsp
Deepak khetawat sling_models_sightly_jspDeepak khetawat sling_models_sightly_jsp
Deepak khetawat sling_models_sightly_jspDEEPAK KHETAWAT
 
Java Tech & Tools | OSGi Best Practices | Emily Jiang
Java Tech & Tools | OSGi Best Practices | Emily JiangJava Tech & Tools | OSGi Best Practices | Emily Jiang
Java Tech & Tools | OSGi Best Practices | Emily JiangJAX London
 
R12 d49656 gc10-apps dba 10
R12 d49656 gc10-apps dba 10R12 d49656 gc10-apps dba 10
R12 d49656 gc10-apps dba 10zeesniper
 
Lunacloud's Compute RESTful API - Programmer's Guide
Lunacloud's Compute RESTful API - Programmer's GuideLunacloud's Compute RESTful API - Programmer's Guide
Lunacloud's Compute RESTful API - Programmer's GuideLunacloud
 
HP ArcSight Asset Model Import FlexConnector Developer's Guide
HP ArcSight Asset Model Import FlexConnector Developer's GuideHP ArcSight Asset Model Import FlexConnector Developer's Guide
HP ArcSight Asset Model Import FlexConnector Developer's GuideProtect724tk
 
Using SP Metal for faster share point development
Using SP Metal for faster share point developmentUsing SP Metal for faster share point development
Using SP Metal for faster share point developmentPranav Sharma
 
Introduction to apex code
Introduction to apex codeIntroduction to apex code
Introduction to apex codeEdwinOstos
 
R12 d49656 gc10-apps dba 24
R12 d49656 gc10-apps dba 24R12 d49656 gc10-apps dba 24
R12 d49656 gc10-apps dba 24zeesniper
 
quickguide-einnovator-2-spring4-dependency-injection-annotations
quickguide-einnovator-2-spring4-dependency-injection-annotationsquickguide-einnovator-2-spring4-dependency-injection-annotations
quickguide-einnovator-2-spring4-dependency-injection-annotationsjorgesimao71
 
Accelerated data access
Accelerated data accessAccelerated data access
Accelerated data accessgordonyorke
 
Introduction to Apache Solr.
Introduction to Apache Solr.Introduction to Apache Solr.
Introduction to Apache Solr.ashish0x90
 

Was ist angesagt? (20)

Add on packages
Add on packagesAdd on packages
Add on packages
 
Solr Presentation
Solr PresentationSolr Presentation
Solr Presentation
 
New features-in-abap-7.4
New features-in-abap-7.4New features-in-abap-7.4
New features-in-abap-7.4
 
Import export.odp
Import export.odpImport export.odp
Import export.odp
 
Basics of Solr and Solr Integration with AEM6
Basics of Solr and Solr Integration with AEM6Basics of Solr and Solr Integration with AEM6
Basics of Solr and Solr Integration with AEM6
 
Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)
 
07 Using Oracle-Supported Package in Application Development
07 Using Oracle-Supported Package in Application Development07 Using Oracle-Supported Package in Application Development
07 Using Oracle-Supported Package in Application Development
 
Deepak khetawat sling_models_sightly_jsp
Deepak khetawat sling_models_sightly_jspDeepak khetawat sling_models_sightly_jsp
Deepak khetawat sling_models_sightly_jsp
 
Mysql
MysqlMysql
Mysql
 
Java Tech & Tools | OSGi Best Practices | Emily Jiang
Java Tech & Tools | OSGi Best Practices | Emily JiangJava Tech & Tools | OSGi Best Practices | Emily Jiang
Java Tech & Tools | OSGi Best Practices | Emily Jiang
 
R12 d49656 gc10-apps dba 10
R12 d49656 gc10-apps dba 10R12 d49656 gc10-apps dba 10
R12 d49656 gc10-apps dba 10
 
Lunacloud's Compute RESTful API - Programmer's Guide
Lunacloud's Compute RESTful API - Programmer's GuideLunacloud's Compute RESTful API - Programmer's Guide
Lunacloud's Compute RESTful API - Programmer's Guide
 
HP ArcSight Asset Model Import FlexConnector Developer's Guide
HP ArcSight Asset Model Import FlexConnector Developer's GuideHP ArcSight Asset Model Import FlexConnector Developer's Guide
HP ArcSight Asset Model Import FlexConnector Developer's Guide
 
Using SP Metal for faster share point development
Using SP Metal for faster share point developmentUsing SP Metal for faster share point development
Using SP Metal for faster share point development
 
Introduction to apex code
Introduction to apex codeIntroduction to apex code
Introduction to apex code
 
R12 d49656 gc10-apps dba 24
R12 d49656 gc10-apps dba 24R12 d49656 gc10-apps dba 24
R12 d49656 gc10-apps dba 24
 
quickguide-einnovator-2-spring4-dependency-injection-annotations
quickguide-einnovator-2-spring4-dependency-injection-annotationsquickguide-einnovator-2-spring4-dependency-injection-annotations
quickguide-einnovator-2-spring4-dependency-injection-annotations
 
Dost.jar and fo.jar
Dost.jar and fo.jarDost.jar and fo.jar
Dost.jar and fo.jar
 
Accelerated data access
Accelerated data accessAccelerated data access
Accelerated data access
 
Introduction to Apache Solr.
Introduction to Apache Solr.Introduction to Apache Solr.
Introduction to Apache Solr.
 

Andere mochten auch

Odi course curriculumn
Odi course curriculumnOdi course curriculumn
Odi course curriculumnAmit Sharma
 
E mail and-workflow-administation
E mail and-workflow-administationE mail and-workflow-administation
E mail and-workflow-administationAmit Sharma
 
User and group security migration
User and group security migrationUser and group security migration
User and group security migrationAmit Sharma
 
Getting started-with-oracle-so a-vi
Getting started-with-oracle-so a-viGetting started-with-oracle-so a-vi
Getting started-with-oracle-so a-viAmit Sharma
 
Essbase security-implementation
Essbase security-implementationEssbase security-implementation
Essbase security-implementationAmit Sharma
 
Getting started-with-oracle-so a-i
Getting started-with-oracle-so a-iGetting started-with-oracle-so a-i
Getting started-with-oracle-so a-iAmit Sharma
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-iiAmit Sharma
 
Smart view for-planning-part-ii
Smart view for-planning-part-iiSmart view for-planning-part-ii
Smart view for-planning-part-iiAmit Sharma
 
Oracle11g form-course-curriculum
Oracle11g form-course-curriculumOracle11g form-course-curriculum
Oracle11g form-course-curriculumAmit Sharma
 
Dot net-course-curriculumn
Dot net-course-curriculumnDot net-course-curriculumn
Dot net-course-curriculumnAmit Sharma
 
Getting started-with-oracle-so a-iv
Getting started-with-oracle-so a-ivGetting started-with-oracle-so a-iv
Getting started-with-oracle-so a-ivAmit Sharma
 
Getting started-with-oracle-so a-iii
Getting started-with-oracle-so a-iiiGetting started-with-oracle-so a-iii
Getting started-with-oracle-so a-iiiAmit Sharma
 
Qlik view installation guide
Qlik view installation guideQlik view installation guide
Qlik view installation guideAmit Sharma
 
Getting started-with-qlikview-part-i
Getting started-with-qlikview-part-iGetting started-with-qlikview-part-i
Getting started-with-qlikview-part-iAmit Sharma
 
Sales force certification-lab
Sales force certification-labSales force certification-lab
Sales force certification-labAmit Sharma
 
Oracle dataintegratorcurriculum
Oracle dataintegratorcurriculumOracle dataintegratorcurriculum
Oracle dataintegratorcurriculumAmit Sharma
 
Controlling accesst 1 aug
Controlling accesst 1 augControlling accesst 1 aug
Controlling accesst 1 augAmit Sharma
 
Visualforce controllers
Visualforce controllersVisualforce controllers
Visualforce controllersAmit Sharma
 
Build java-ee-applications-with-adf
Build java-ee-applications-with-adfBuild java-ee-applications-with-adf
Build java-ee-applications-with-adfAmit Sharma
 
Getting started-with-oracle-so a-i
Getting started-with-oracle-so a-iGetting started-with-oracle-so a-i
Getting started-with-oracle-so a-iAmit Sharma
 

Andere mochten auch (20)

Odi course curriculumn
Odi course curriculumnOdi course curriculumn
Odi course curriculumn
 
E mail and-workflow-administation
E mail and-workflow-administationE mail and-workflow-administation
E mail and-workflow-administation
 
User and group security migration
User and group security migrationUser and group security migration
User and group security migration
 
Getting started-with-oracle-so a-vi
Getting started-with-oracle-so a-viGetting started-with-oracle-so a-vi
Getting started-with-oracle-so a-vi
 
Essbase security-implementation
Essbase security-implementationEssbase security-implementation
Essbase security-implementation
 
Getting started-with-oracle-so a-i
Getting started-with-oracle-so a-iGetting started-with-oracle-so a-i
Getting started-with-oracle-so a-i
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-ii
 
Smart view for-planning-part-ii
Smart view for-planning-part-iiSmart view for-planning-part-ii
Smart view for-planning-part-ii
 
Oracle11g form-course-curriculum
Oracle11g form-course-curriculumOracle11g form-course-curriculum
Oracle11g form-course-curriculum
 
Dot net-course-curriculumn
Dot net-course-curriculumnDot net-course-curriculumn
Dot net-course-curriculumn
 
Getting started-with-oracle-so a-iv
Getting started-with-oracle-so a-ivGetting started-with-oracle-so a-iv
Getting started-with-oracle-so a-iv
 
Getting started-with-oracle-so a-iii
Getting started-with-oracle-so a-iiiGetting started-with-oracle-so a-iii
Getting started-with-oracle-so a-iii
 
Qlik view installation guide
Qlik view installation guideQlik view installation guide
Qlik view installation guide
 
Getting started-with-qlikview-part-i
Getting started-with-qlikview-part-iGetting started-with-qlikview-part-i
Getting started-with-qlikview-part-i
 
Sales force certification-lab
Sales force certification-labSales force certification-lab
Sales force certification-lab
 
Oracle dataintegratorcurriculum
Oracle dataintegratorcurriculumOracle dataintegratorcurriculum
Oracle dataintegratorcurriculum
 
Controlling accesst 1 aug
Controlling accesst 1 augControlling accesst 1 aug
Controlling accesst 1 aug
 
Visualforce controllers
Visualforce controllersVisualforce controllers
Visualforce controllers
 
Build java-ee-applications-with-adf
Build java-ee-applications-with-adfBuild java-ee-applications-with-adf
Build java-ee-applications-with-adf
 
Getting started-with-oracle-so a-i
Getting started-with-oracle-so a-iGetting started-with-oracle-so a-i
Getting started-with-oracle-so a-i
 

Ähnlich wie Force.com migration utility

User and group security migration
User and group security migrationUser and group security migration
User and group security migrationAmit Sharma
 
Salesforce ANT migration
Salesforce ANT migration Salesforce ANT migration
Salesforce ANT migration Cloud Analogy
 
Asset modelimportconn devguide_5.2.1.6190.0
Asset modelimportconn devguide_5.2.1.6190.0Asset modelimportconn devguide_5.2.1.6190.0
Asset modelimportconn devguide_5.2.1.6190.0Protect724
 
Asset modelimportconn devguide_5.2.1.6190.0
Asset modelimportconn devguide_5.2.1.6190.0Asset modelimportconn devguide_5.2.1.6190.0
Asset modelimportconn devguide_5.2.1.6190.0Protect724
 
Asset Model Import FlexConnector Developer's Guide
Asset Model Import FlexConnector Developer's GuideAsset Model Import FlexConnector Developer's Guide
Asset Model Import FlexConnector Developer's GuideProtect724migration
 
Apex code-fundamentals
Apex code-fundamentalsApex code-fundamentals
Apex code-fundamentalsAmit Sharma
 
Apex code-fundamentals
Apex code-fundamentalsApex code-fundamentals
Apex code-fundamentalsAmit Sharma
 
Custom Metadata Records Deployment From Apex Code
Custom Metadata Records Deployment From Apex CodeCustom Metadata Records Deployment From Apex Code
Custom Metadata Records Deployment From Apex CodeBohdan Dovhań
 
Programming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) EnvironmentProgramming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) EnvironmentMahmoud Samir Fayed
 
Best practices in using Salesforce Metadata API
Best practices in using Salesforce Metadata APIBest practices in using Salesforce Metadata API
Best practices in using Salesforce Metadata APISanchit Dua
 
Subsystem Framework and Authentication
Subsystem Framework and AuthenticationSubsystem Framework and Authentication
Subsystem Framework and AuthenticationAlfresco Software
 
Best practices in using Salesforce Metadata API
Best practices in using Salesforce Metadata APIBest practices in using Salesforce Metadata API
Best practices in using Salesforce Metadata APISanchit Dua
 
Athena java dev guide
Athena java dev guideAthena java dev guide
Athena java dev guidedvdung
 
Oracle Concurrent Program Setup document
Oracle Concurrent Program Setup  documentOracle Concurrent Program Setup  document
Oracle Concurrent Program Setup documentvenkatesh gurusamy
 
Spring review_for Semester II of Year 4
Spring review_for Semester II of Year 4Spring review_for Semester II of Year 4
Spring review_for Semester II of Year 4than sare
 
Oracle DBA interview_questions
Oracle DBA interview_questionsOracle DBA interview_questions
Oracle DBA interview_questionsNaveen P
 
A Complete Installation Guide for Orangescrum
A Complete Installation Guide for OrangescrumA Complete Installation Guide for Orangescrum
A Complete Installation Guide for OrangescrumOrangescrum
 
OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015Oro Inc.
 

Ähnlich wie Force.com migration utility (20)

User and group security migration
User and group security migrationUser and group security migration
User and group security migration
 
Salesforce ANT migration
Salesforce ANT migration Salesforce ANT migration
Salesforce ANT migration
 
Asset modelimportconn devguide_5.2.1.6190.0
Asset modelimportconn devguide_5.2.1.6190.0Asset modelimportconn devguide_5.2.1.6190.0
Asset modelimportconn devguide_5.2.1.6190.0
 
Asset modelimportconn devguide_5.2.1.6190.0
Asset modelimportconn devguide_5.2.1.6190.0Asset modelimportconn devguide_5.2.1.6190.0
Asset modelimportconn devguide_5.2.1.6190.0
 
Adobe Flex4
Adobe Flex4 Adobe Flex4
Adobe Flex4
 
Asset Model Import FlexConnector Developer's Guide
Asset Model Import FlexConnector Developer's GuideAsset Model Import FlexConnector Developer's Guide
Asset Model Import FlexConnector Developer's Guide
 
Apex code-fundamentals
Apex code-fundamentalsApex code-fundamentals
Apex code-fundamentals
 
Apex code-fundamentals
Apex code-fundamentalsApex code-fundamentals
Apex code-fundamentals
 
Custom Metadata Records Deployment From Apex Code
Custom Metadata Records Deployment From Apex CodeCustom Metadata Records Deployment From Apex Code
Custom Metadata Records Deployment From Apex Code
 
Programming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) EnvironmentProgramming Without Coding Technology (PWCT) Environment
Programming Without Coding Technology (PWCT) Environment
 
Best practices in using Salesforce Metadata API
Best practices in using Salesforce Metadata APIBest practices in using Salesforce Metadata API
Best practices in using Salesforce Metadata API
 
Subsystem Framework and Authentication
Subsystem Framework and AuthenticationSubsystem Framework and Authentication
Subsystem Framework and Authentication
 
Best practices in using Salesforce Metadata API
Best practices in using Salesforce Metadata APIBest practices in using Salesforce Metadata API
Best practices in using Salesforce Metadata API
 
Salesforce
SalesforceSalesforce
Salesforce
 
Athena java dev guide
Athena java dev guideAthena java dev guide
Athena java dev guide
 
Oracle Concurrent Program Setup document
Oracle Concurrent Program Setup  documentOracle Concurrent Program Setup  document
Oracle Concurrent Program Setup document
 
Spring review_for Semester II of Year 4
Spring review_for Semester II of Year 4Spring review_for Semester II of Year 4
Spring review_for Semester II of Year 4
 
Oracle DBA interview_questions
Oracle DBA interview_questionsOracle DBA interview_questions
Oracle DBA interview_questions
 
A Complete Installation Guide for Orangescrum
A Complete Installation Guide for OrangescrumA Complete Installation Guide for Orangescrum
A Complete Installation Guide for Orangescrum
 
OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015
 

Mehr von Amit Sharma

Oracle enteprise pbcs drivers and assumptions
Oracle enteprise pbcs drivers and assumptionsOracle enteprise pbcs drivers and assumptions
Oracle enteprise pbcs drivers and assumptionsAmit Sharma
 
Oracle EPBCS Driver
Oracle EPBCS Driver Oracle EPBCS Driver
Oracle EPBCS Driver Amit Sharma
 
Oracle Sales Quotation Planning
Oracle Sales Quotation PlanningOracle Sales Quotation Planning
Oracle Sales Quotation PlanningAmit Sharma
 
Oracle strategic workforce planning cloud hcmswp converted
Oracle strategic workforce planning cloud hcmswp convertedOracle strategic workforce planning cloud hcmswp converted
Oracle strategic workforce planning cloud hcmswp convertedAmit Sharma
 
FDMEE script examples
FDMEE script examplesFDMEE script examples
FDMEE script examplesAmit Sharma
 
Oracle PBCS creating standard application
Oracle PBCS creating  standard applicationOracle PBCS creating  standard application
Oracle PBCS creating standard applicationAmit Sharma
 
Hfm rule custom consolidation
Hfm rule custom consolidationHfm rule custom consolidation
Hfm rule custom consolidationAmit Sharma
 
Hfm calculating RoA
Hfm calculating RoAHfm calculating RoA
Hfm calculating RoAAmit Sharma
 
Adding metadata using smartview
Adding metadata using smartviewAdding metadata using smartview
Adding metadata using smartviewAmit Sharma
 
Hyperion planning weekly distribution
Hyperion planning weekly distributionHyperion planning weekly distribution
Hyperion planning weekly distributionAmit Sharma
 
Hyperion planning scheduling data import
Hyperion planning scheduling data importHyperion planning scheduling data import
Hyperion planning scheduling data importAmit Sharma
 
Hyperion planning new features
Hyperion planning new featuresHyperion planning new features
Hyperion planning new featuresAmit Sharma
 
Microsoft dynamics crm videos
Microsoft dynamics crm videosMicrosoft dynamics crm videos
Microsoft dynamics crm videosAmit Sharma
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Amit Sharma
 
Oracle apex hands on lab#2
Oracle apex hands on lab#2Oracle apex hands on lab#2
Oracle apex hands on lab#2Amit Sharma
 
Security and-data-access-document
Security and-data-access-documentSecurity and-data-access-document
Security and-data-access-documentAmit Sharma
 
Sales force managing-data
Sales force managing-dataSales force managing-data
Sales force managing-dataAmit Sharma
 
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...Amit Sharma
 
Managing users-doc
Managing users-docManaging users-doc
Managing users-docAmit Sharma
 

Mehr von Amit Sharma (20)

Oracle enteprise pbcs drivers and assumptions
Oracle enteprise pbcs drivers and assumptionsOracle enteprise pbcs drivers and assumptions
Oracle enteprise pbcs drivers and assumptions
 
Oracle EPBCS Driver
Oracle EPBCS Driver Oracle EPBCS Driver
Oracle EPBCS Driver
 
Oracle Sales Quotation Planning
Oracle Sales Quotation PlanningOracle Sales Quotation Planning
Oracle Sales Quotation Planning
 
Oracle strategic workforce planning cloud hcmswp converted
Oracle strategic workforce planning cloud hcmswp convertedOracle strategic workforce planning cloud hcmswp converted
Oracle strategic workforce planning cloud hcmswp converted
 
Basics of fdmee
Basics of fdmeeBasics of fdmee
Basics of fdmee
 
FDMEE script examples
FDMEE script examplesFDMEE script examples
FDMEE script examples
 
Oracle PBCS creating standard application
Oracle PBCS creating  standard applicationOracle PBCS creating  standard application
Oracle PBCS creating standard application
 
Hfm rule custom consolidation
Hfm rule custom consolidationHfm rule custom consolidation
Hfm rule custom consolidation
 
Hfm calculating RoA
Hfm calculating RoAHfm calculating RoA
Hfm calculating RoA
 
Adding metadata using smartview
Adding metadata using smartviewAdding metadata using smartview
Adding metadata using smartview
 
Hyperion planning weekly distribution
Hyperion planning weekly distributionHyperion planning weekly distribution
Hyperion planning weekly distribution
 
Hyperion planning scheduling data import
Hyperion planning scheduling data importHyperion planning scheduling data import
Hyperion planning scheduling data import
 
Hyperion planning new features
Hyperion planning new featuresHyperion planning new features
Hyperion planning new features
 
Microsoft dynamics crm videos
Microsoft dynamics crm videosMicrosoft dynamics crm videos
Microsoft dynamics crm videos
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1
 
Oracle apex hands on lab#2
Oracle apex hands on lab#2Oracle apex hands on lab#2
Oracle apex hands on lab#2
 
Security and-data-access-document
Security and-data-access-documentSecurity and-data-access-document
Security and-data-access-document
 
Sales force managing-data
Sales force managing-dataSales force managing-data
Sales force managing-data
 
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
 
Managing users-doc
Managing users-docManaging users-doc
Managing users-doc
 

Kürzlich hochgeladen

WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 

Kürzlich hochgeladen (20)

WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 

Force.com migration utility

  • 1. Getting Started with SalesForce CRM Working Force.com Migration Utility Description: BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-to end Hands-on Beginner’s Guide for SalesForce. The document focuses on force.com migration utility. Join our professional training program and learn from experts. History: Version Description Change 0.1 Initial Draft 0.1 Review#1 www.bispsolutions.com Author Chandra Prakash Sharma Amit Sharma www.bisptrainigs.com Publish Date 10th Oct 2013 10th Oct 2013 www.hyperionguru.com Page 1
  • 2. Contents ......................................................................................................................................................... 2 Force.com Migration Tool Overview .................................................................................................3 Understanding Metadata API :....................................................................................................3 Installing the Force.com Migration Tool..........................................................................................3 How set ant path :....................................................................................................................... 4 ...................................................................................................................................................... 5 Using the Force.com Migration Tool ..............................................................................................5 SalesForce Connection Information:...........................................................................................5 Constructing a Project Manifest :................................................................................................6 Describing Metadata Types :......................................................................................................7 Listing Components for a Metadata Type :................................................................................8 Creating Retrieve Targets :.........................................................................................................9 Retrieving Metadata from a SalesForce Organization :................................................................10 www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 2
  • 3. Force.com Migration Tool Overview The Force.com Migration Tool is a Java/Ant-based command-line utility for moving metadata between a local directory and a SalesForce organization.  Development projects where you need to populate a test environment with large amounts of setup changes — Making these changes using a Web interface could take a long time.  Multistage release processes — A typical development process requires iterative building, testing, and staging before releasing to a production environment. Scripted retrieval and deployment of components can make this process much more efficient.  Repetitive deployment using the same parameters — You can retrieve all the metadata in your organization, make changes, and deploy a subset of components. If you need to repeat this process, it's as simple as calling the same deployment target again.  When migrating from stage to production is done by IT — Anyone that prefers deploying in a scripting environment will find the Force.com Migration Tool a familiar process. Understanding Metadata API : Metadata API contains a set of objects that manage setup and customization information (metadata) for your organizations, and the SOAP calls that manipulate those objects. With Metadata API you can:  Work with setup configuration as XML metadata files  Migrate configuration changes between organizations  Create your own tools for managing organization and application metadata Installing the Force.com Migration Tool Before you install the Force.com Migration Tool you will need Java and Ant installed on your local machine. you can download on this link : http://ant.apache.org/ and also need JDK 1.6.x or later. . http://www.oracle.com/technetwork/java/javase/downloads/index.html 1. Install Java and Ant. 2. Login to a SalesForce organization and download the Force.com Migration Tool, as described in Installing the Force.com Migration Tool. download the Force.com Migration Tool from a SalesForce organization. Click on Setup > Develop > Tools, then click Force.com Migration Tool. see below. www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 3
  • 4. Save the .zip file locally and extract the contents to the directory of your choice. Copy ant-salesforce.jar and paste into your Ant installation's lib directory. The lib directory is located in the root folder of your Ant installation. After install Jdk check java version open command prompt then type java -version, you can see below. How set ant path : Syntax SET ANT_HOME=my_path_to_ant_folder Example Ex : SET ANT_HOME= D:cp sharmaswapache-ant-1.9.3-binapache-ant1.9.3 SET JAVA_HOME=my_path_to_jdk_folder SET PATH=%PATH%;%ANT_HOME%/bin; %JAVA_HOME%bin; Ex: C:Program FilesJavajdk1.7.0_45 Ex : SET PATH=%PATH%;%ANT_HOME %/bin;%JAVA_HOME%bin; After set path you can check ant version by using this syntax. syntax : ant -version www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 4
  • 5. Using the Force.com Migration Tool The Force.com Migration Tool is a Java/Ant-based command-line utility for moving metadata between a local directory and a SalesForce organization. The general procedure you will follow when using the Force.com Migration Tool to copy metadata from one SalesForce organization to another is: 1) Enter credentials and connection information for source SalesForce organization in build.properties 2) Create retrieve targets in build.xml 3) Construct a project manifest in package.xml 4) Run the Force.com Migration Tool to retrieve metadata files from SalesForce 5) Enter credentials and connection information for destination SalesForce organization in build.properties 6) Run the Force.com Migration Tool to deploy metadata files or deletions to SalesForce SalesForce Connection Information: 1. Go to the location where you extracted the Force.com Migration Tool files and open the sample subdirectory. 2. Open build.properties in a text editor and substitute a valid SalesForce username and password. If you are using a security token, paste the 25-digit token value to the end of your password. you can see below. www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 5
  • 6. Constructing a Project Manifest : The package.xml file is a project manifest that lists all the components you want to retrieve or deploy in a single request. You can retrieve or deploy only a single package at a time. The following elements may be defined in package.xml : Name Description <fullName> The name of the server-side package to deploy into. If the <fullName> field is omitted, components will not be assigned to a package when deployed, and will be in the unpackaged package. <types> This element contains one or more <members> tags and one <name> tag, and is used to list the metadata components of a certain type to retrieve or deploy. <members> The full name of a component. There is one <members> element defined for each component in the directory. You can replace the value in this member with the wildcard character * (asterisk) instead of listing each member separately. <name> There is one name defined for each component type in the directory. This is a child element of <types>. <version> The Metadata API version number of the files being retrieved or deployed. When deploying, all the files must conform to the same version of the Metadata API. Specifying Standard Objects : To retrieve standard objects and/or custom fields on standard objects, you must name the component in package.xml. www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 6
  • 7. Specifying Named Components : To retrieve a component, specify the type of component in the <name> element and declare each component to be retrieved or deployed in the <members> element. The following is a sample package. Specifying all Components of a Type : To retrieve all components of a particular type, use the wildcard symbol (*). For example, to retrieve all custom objects: Specifying Standard Objects : To retrieve standard objects and/or custom fields on standard objects, you must name the component in package.xml. Describing Metadata Types : www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 7
  • 8. Field username password serverurl apiVersion resultFilePath trace Description Required. The SalesForce username for login. The username associated with this connection must have the "Modify All Data" permission. Required. The password you use to log into the organization associated with this project. If you are using a security token, paste the 25-digit token value to the end of your password. Optional. The SalesForce server URL (if blank, defaults to login.salesforce.com). To connect to a sandbox instance, change this to test.salesforce.com. Optional. The API version to use for the metadata. The default is 29.0. Optional. The path of the output file where results are stored. The default output is the console. Directing the output to a file makes it easier to extract the relevant information for your package.xml manifest file. Optional. Defaults to false. Prints the SOAP requests and responses to the console. Note that this will show the user's password in plain text during login. Get the list of metadata types enabled for your organization, specify a target in the build.xml file using Listing Components for a Metadata Type : The listMetadata target retrieves property information about metadata components in your organization. This target is useful when you want to identify individual components in package. Field Description username Required. The SalesForce username for login. The username associated with this connection must have the “Modify All Data” permission. password Required. The password you use to log into the organization associated with this project. If you are using a security token, paste the 25-digit token value to the end of your password. serverurl Optional. The SalesForce server URL (if blank, defaults to login.salesforce.com). To connect to a sandbox instance, change this to test.salesforce.com. metadataType Required. The name of the metadata type for which you are retrieving property information; for example, CustomObject for custom objects, or Report for custom reports. folder The folder associated with the component. This field is required for components that use folders, such as Dashboard, Document, Email Template, www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 8
  • 9. apiVersion resultFilePath trace or Report. Optional. The API version to use for the metadata. The default is 29.0. Optional. The path of the output file where results are stored. The default output is the console. Directing the output to a file makes it easier to extract the relevant information for your package.xml manifest file. Optional. Defaults to false. Prints the SOAP requests and responses to the console. Note that this will show the user's password in plain text during login. Get property information for components of one metadata type, such as CustomObject, specify a target in the build.xml file using Creating Retrieve Targets : The build.xml file specifies a series of commands to be executed by Ant. Within the build.xml file are named targets that process a series of commands when you run Ant with a target name. The following parameters may be set for each <sf:retrieve> target : Field Description username Required. The SalesForce username for login. The username associated with this connection must have the “Modify All Data” permission. password Required. The password you use to log into the organization associated with this project. If you are using a security token, paste the 25-digit token value to the end of your password. serverurl Optional. The SalesForce server URL (if blank, defaults to login.salesforce.com). To connect to a sandbox instance, change this to test.salesforce.com. retrieveTarget Required. The root of the directory structure into which the metadata files are retrieved. packageNames Required if unpackaged is not specified. A comma-separated list of the names of the packages to retrieve. apiVersion Optional. The API version to use for the metadata. The default is 29.0. pollWaitMillis Optional. Defaults to 10000. The number of milliseconds to wait between attempts when polling for results of the retrieve request. maxPoll Optional. Defaults to 20. The number of times to poll the server for the results of the retrieve request. singlePackage Optional. Defaults to true. This must be set to false if you are retrieving multiple www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 9
  • 10. trace unpackaged unzip packages. If set to false, the retrieved zip file includes an extra top-level directory containing a subdirectory for each package. Optional. Defaults to false. Prints the SOAP requests and responses to the console. Note that this will show the user's password in plain text during login. Required if packageNames is not specified. The path and name of a file manifest that specifies the components to retrieve. Optional. Defaults to true. If set to true, the retrieved components are unzipped. Retrieving Metadata from a SalesForce Organization : To retrieve Force.com components : 1. Open a command prompt. 2. Run Ant by specifying a target name in build.xml. If this is the first time you are running Ant, use ant retrieveUnpackaged to retrieve unpackaged components specified in package.xml. Running Tests in a Deployment : For deployment to a production organization, all the tests in your organization, except for those that originate from installed If the deployment includes components for any of the following metadata types, all the tests are automatically run.  ApexClass  ApexComponent  ApexPage  ApexTrigger  ArticleType  CriteriaBasedSharingRule  CustomDataType  CustomField  CustomObject  DataCategoryGroup  Flow  InstalledPackage  NamedFilter  OwnerSharingRule  PermissionSet  Profile  Queue  RemoteSiteSettingRecordType  Role  SharingReason www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 10
  • 11.  Territory  Validation Rules  Workflow www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 11