SlideShare a Scribd company logo
Getting Started with SalesForce CRM
Group Security Migration Using 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 migration utility. Join our professional training
program and learn from experts.
History:
Version Description Change Author Publish Date
0.1 Initial Draft Chandra Prakash Sharma 10th
Oct 2013
0.1 Review#1 Amit Sharma 10th
Oct 2013
www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 1
Contents
.........................................................................................................................................................2
User / Group Security Migration.........................................................................................................3
Force.com Migration Tool Overview ..............................................................................................3
Understanding Metadata API :....................................................................................................3
Installing the Force.com Migration Tool..........................................................................................3
How set ant path :.......................................................................................................................4
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
User / Group Security Migration
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 Example
SET ANT_HOME=my_path_to_ant_folder Ex : SET ANT_HOME= D:cp
sharmaswapache-ant-1.9.3-binapache-ant-
1.9.3
SET JAVA_HOME=my_path_to_jdk_folder Ex: C:Program FilesJavajdk1.7.0_45
SET PATH=%PATH%;%ANT_HOME%/bin;
%JAVA_HOME%bin;
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 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.
apiVersion Optional. The API version to use for the metadata. The default is 29.0.
resultFilePath 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.
trace 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
or Report.
apiVersion Optional. The API version to use for the metadata. The default is 29.0.
resultFilePath 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.
trace 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
packages. If set to false, the retrieved zip file includes an extra top-level
directory
containing a subdirectory for each package.
trace 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.
unpackaged Required if packageNames is not specified. The path and name of a file
manifest
that specifies the components to retrieve.
unzip 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

More Related Content

PDF
User and group security migration
PDF
Sales force certification-lab
PDF
Visualforce controllers
PDF
Apex code-fundamentals
PDF
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
PDF
Sales force managing-data
PDF
Oracle apex hands on lab#2
PDF
Salesforce interview preparation toolkit formula and validation rules in sale...
User and group security migration
Sales force certification-lab
Visualforce controllers
Apex code-fundamentals
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
Sales force managing-data
Oracle apex hands on lab#2
Salesforce interview preparation toolkit formula and validation rules in sale...

What's hot (17)

PDF
E mail and-workflow-administation
PDF
Customizing sales force-interface
PDF
Force.com migration utility
PDF
Sales force certification-lab-ii
PDF
Web I - 04 - Forms
PDF
Intro to Apex Programmers
PDF
Extend oa-framework-add-new-field
PDF
Fiverr html5 test answers 2020
PPTX
WordPress + Office 365 | Employee directory v9.x
DOCX
How to convert custom plsql to web services-Soap OR Rest
PDF
Magento 2 Price Match Extension By ITORIS INC
PDF
FlexNet Delivery and FlexNet Operations On-Demand Tips & Tricks
PDF
Babble article - Test Automation & Text Translation
PPTX
Workflow functional concept on openerp7
PDF
Flavours - Classic/Technical BDD
PDF
Bdd Show and Tell
PDF
Oracle Fusion Role Mappings
E mail and-workflow-administation
Customizing sales force-interface
Force.com migration utility
Sales force certification-lab-ii
Web I - 04 - Forms
Intro to Apex Programmers
Extend oa-framework-add-new-field
Fiverr html5 test answers 2020
WordPress + Office 365 | Employee directory v9.x
How to convert custom plsql to web services-Soap OR Rest
Magento 2 Price Match Extension By ITORIS INC
FlexNet Delivery and FlexNet Operations On-Demand Tips & Tricks
Babble article - Test Automation & Text Translation
Workflow functional concept on openerp7
Flavours - Classic/Technical BDD
Bdd Show and Tell
Oracle Fusion Role Mappings
Ad

Viewers also liked (15)

PDF
Getting started-with-oracle-so a-vii
PDF
Hfm task atumation
PDF
Getting started-with-oracle-so a-ii
PDF
Getting started-with-oracle-so a-v
PDF
Getting started-with-oracle-so a-iii
PDF
Oracle11g form-course-curriculum
PDF
Getting started-with-oracle-so a-vi
PDF
Oracle dataintegratorcurriculum
PDF
Odi course curriculumn
PPT
Controlling accesst 1 aug
PPT
Hyperion planning scheduling data import
PDF
Getting started-with-oracle-so a-i
PDF
Sales force certification-lab-ii
PDF
Hfm task atumation
PDF
Force.com migration utility
Getting started-with-oracle-so a-vii
Hfm task atumation
Getting started-with-oracle-so a-ii
Getting started-with-oracle-so a-v
Getting started-with-oracle-so a-iii
Oracle11g form-course-curriculum
Getting started-with-oracle-so a-vi
Oracle dataintegratorcurriculum
Odi course curriculumn
Controlling accesst 1 aug
Hyperion planning scheduling data import
Getting started-with-oracle-so a-i
Sales force certification-lab-ii
Hfm task atumation
Force.com migration utility
Ad

Similar to User and group security migration (20)

PPTX
SFDC Deployments
PPTX
Salesforce ANT migration
PPTX
Force.com Migration Tool
PDF
Salesforce API Series: Release Management with the Metadata API webinar
PDF
Best practices in using Salesforce Metadata API
PDF
Team Development and Release Management
PPTX
SAP and Salesforce Integration
PDF
Best practices in using Salesforce Metadata API
PDF
TechNet Live spor 1 sesjon 2 - sc-forefront 2
PDF
Winter 20 Salesforce Release Webinar
PPTX
Meta data migration
PDF
Org Merge Best Practices
PDF
4 Ways to Fetch Metadata in Salesforce | Salesforce Metadata
PPTX
Deployments with VS Code and Salesforce CLI
PDF
Salesforce CLI
PDF
Use Custom Metadata Types for Easy ALM & Compliance for Your Custom Apps
PPTX
Best practices for implementing CI/CD on Salesforce
PDF
Useful Salesforce.com chrome extensions & Snapshots
PPTX
Deploying to the Salesforce1 Platform
PPT
BizTalk Application Deployment
SFDC Deployments
Salesforce ANT migration
Force.com Migration Tool
Salesforce API Series: Release Management with the Metadata API webinar
Best practices in using Salesforce Metadata API
Team Development and Release Management
SAP and Salesforce Integration
Best practices in using Salesforce Metadata API
TechNet Live spor 1 sesjon 2 - sc-forefront 2
Winter 20 Salesforce Release Webinar
Meta data migration
Org Merge Best Practices
4 Ways to Fetch Metadata in Salesforce | Salesforce Metadata
Deployments with VS Code and Salesforce CLI
Salesforce CLI
Use Custom Metadata Types for Easy ALM & Compliance for Your Custom Apps
Best practices for implementing CI/CD on Salesforce
Useful Salesforce.com chrome extensions & Snapshots
Deploying to the Salesforce1 Platform
BizTalk Application Deployment

More from Amit Sharma (19)

PDF
Oracle enteprise pbcs drivers and assumptions
PDF
Oracle EPBCS Driver
PDF
Oracle Sales Quotation Planning
PDF
Oracle strategic workforce planning cloud hcmswp converted
PDF
Basics of fdmee
PDF
FDMEE script examples
PDF
Oracle PBCS creating standard application
PPT
Hfm rule custom consolidation
PPT
Hfm calculating RoA
PPT
Adding metadata using smartview
PPT
Hyperion planning weekly distribution
PPT
Hyperion planning new features
TXT
Microsoft dynamics crm videos
PDF
Oracle apex-hands-on-guide lab#1
PDF
Security and-data-access-document
PDF
Sales force certification-lab
PDF
Managing users-doc
PDF
Customizing sales force-interface
PDF
Apex code-fundamentals
Oracle enteprise pbcs drivers and assumptions
Oracle EPBCS Driver
Oracle Sales Quotation Planning
Oracle strategic workforce planning cloud hcmswp converted
Basics of fdmee
FDMEE script examples
Oracle PBCS creating standard application
Hfm rule custom consolidation
Hfm calculating RoA
Adding metadata using smartview
Hyperion planning weekly distribution
Hyperion planning new features
Microsoft dynamics crm videos
Oracle apex-hands-on-guide lab#1
Security and-data-access-document
Sales force certification-lab
Managing users-doc
Customizing sales force-interface
Apex code-fundamentals

User and group security migration

  • 1. Getting Started with SalesForce CRM Group Security Migration Using 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 migration utility. Join our professional training program and learn from experts. History: Version Description Change Author Publish Date 0.1 Initial Draft Chandra Prakash Sharma 10th Oct 2013 0.1 Review#1 Amit Sharma 10th Oct 2013 www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 1
  • 2. Contents .........................................................................................................................................................2 User / Group Security Migration.........................................................................................................3 Force.com Migration Tool Overview ..............................................................................................3 Understanding Metadata API :....................................................................................................3 Installing the Force.com Migration Tool..........................................................................................3 How set ant path :.......................................................................................................................4 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. User / Group Security Migration 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 Example SET ANT_HOME=my_path_to_ant_folder Ex : SET ANT_HOME= D:cp sharmaswapache-ant-1.9.3-binapache-ant- 1.9.3 SET JAVA_HOME=my_path_to_jdk_folder Ex: C:Program FilesJavajdk1.7.0_45 SET PATH=%PATH%;%ANT_HOME%/bin; %JAVA_HOME%bin; 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 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. apiVersion Optional. The API version to use for the metadata. The default is 29.0. resultFilePath 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. trace 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. or Report. apiVersion Optional. The API version to use for the metadata. The default is 29.0. resultFilePath 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. trace 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. packages. If set to false, the retrieved zip file includes an extra top-level directory containing a subdirectory for each package. trace 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. unpackaged Required if packageNames is not specified. The path and name of a file manifest that specifies the components to retrieve. unzip 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