SlideShare una empresa de Scribd logo
1 de 11
Descargar para leer sin conexión
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
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
th
10 Oct 2013

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

Más contenido relacionado

La actualidad más candente

E mail and-workflow-administation
E mail and-workflow-administationE mail and-workflow-administation
E mail and-workflow-administationAmit Sharma
 
Apex basics-for Beginners
Apex basics-for BeginnersApex basics-for Beginners
Apex basics-for Beginnershrakhra
 
Introduction to visualforce
Introduction to visualforceIntroduction to visualforce
Introduction to visualforceRinku Saini
 
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
 
Mulesoft salesforce connector to update Object.
Mulesoft salesforce connector to update Object.Mulesoft salesforce connector to update Object.
Mulesoft salesforce connector to update Object.Yogesh Chandr
 
Custom Controllers and Controller Extensions
Custom Controllers and Controller Extensions Custom Controllers and Controller Extensions
Custom Controllers and Controller Extensions Mohammed Safwat Abu Kwaik
 
IBM Connections mail with exchange backend
IBM Connections mail with exchange backendIBM Connections mail with exchange backend
IBM Connections mail with exchange backendmichele buccarello
 
OBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsOBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsDharmaraj Borse
 
Oa Framework Tutorial
Oa Framework TutorialOa Framework Tutorial
Oa Framework Tutorialnolimit797
 
New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0Dima Maleev
 
Power Automate Techniques that "Saved Our Bacon"
Power Automate Techniques that "Saved Our Bacon"Power Automate Techniques that "Saved Our Bacon"
Power Automate Techniques that "Saved Our Bacon"Thomas Duff
 
Enable seo friendly url in websphere portal
Enable seo friendly url in websphere portalEnable seo friendly url in websphere portal
Enable seo friendly url in websphere portalmichele buccarello
 

La actualidad más candente (17)

E mail and-workflow-administation
E mail and-workflow-administationE mail and-workflow-administation
E mail and-workflow-administation
 
Apex basics-for Beginners
Apex basics-for BeginnersApex basics-for Beginners
Apex basics-for Beginners
 
Introduction to visualforce
Introduction to visualforceIntroduction to visualforce
Introduction to visualforce
 
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...
 
Mulesoft salesforce connector to update Object.
Mulesoft salesforce connector to update Object.Mulesoft salesforce connector to update Object.
Mulesoft salesforce connector to update Object.
 
Intro to Apex Programmers
Intro to Apex ProgrammersIntro to Apex Programmers
Intro to Apex Programmers
 
Custom Controllers and Controller Extensions
Custom Controllers and Controller Extensions Custom Controllers and Controller Extensions
Custom Controllers and Controller Extensions
 
IBM Connections mail with exchange backend
IBM Connections mail with exchange backendIBM Connections mail with exchange backend
IBM Connections mail with exchange backend
 
Oracle EMC 12C Grand Tour
Oracle EMC 12C Grand TourOracle EMC 12C Grand Tour
Oracle EMC 12C Grand Tour
 
OBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsOBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation Steps
 
Oa Framework Tutorial
Oa Framework TutorialOa Framework Tutorial
Oa Framework Tutorial
 
Abap proxies
Abap proxiesAbap proxies
Abap proxies
 
Microsoft Azure
Microsoft AzureMicrosoft Azure
Microsoft Azure
 
New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0New Features Of ASP.Net 4 0
New Features Of ASP.Net 4 0
 
Extensions in OAF
Extensions in OAF Extensions in OAF
Extensions in OAF
 
Power Automate Techniques that "Saved Our Bacon"
Power Automate Techniques that "Saved Our Bacon"Power Automate Techniques that "Saved Our Bacon"
Power Automate Techniques that "Saved Our Bacon"
 
Enable seo friendly url in websphere portal
Enable seo friendly url in websphere portalEnable seo friendly url in websphere portal
Enable seo friendly url in websphere portal
 

Destacado

Oracle11g form course-curriculum
Oracle11g form course-curriculumOracle11g form course-curriculum
Oracle11g form course-curriculumAmit Sharma
 
Getting started-with-oracle-so a-vii
Getting started-with-oracle-so a-viiGetting started-with-oracle-so a-vii
Getting started-with-oracle-so a-viiAmit Sharma
 
Controlling accesst 1 aug
Controlling accesst 1 augControlling accesst 1 aug
Controlling accesst 1 augAmit Sharma
 
Force.com migration utility
Force.com migration utilityForce.com migration utility
Force.com migration utilityAmit 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
 
Hyperion planning scheduling data import
Hyperion planning scheduling data importHyperion planning scheduling data import
Hyperion planning scheduling data importAmit 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
 
Hfm task atumation
Hfm task atumationHfm task atumation
Hfm task atumationAmit 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
 
Oracle11g form-course-curriculum
Oracle11g form-course-curriculumOracle11g form-course-curriculum
Oracle11g form-course-curriculumAmit 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
 
Oracle dataintegratorcurriculum
Oracle dataintegratorcurriculumOracle dataintegratorcurriculum
Oracle dataintegratorcurriculumAmit 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
 
Build java-ee-applications-with-adf
Build java-ee-applications-with-adfBuild java-ee-applications-with-adf
Build java-ee-applications-with-adfAmit Sharma
 
Obiee installation 31 july
Obiee installation 31 julyObiee installation 31 july
Obiee installation 31 julyAmit Sharma
 
Ibm cognos-build-data-marts-reports-and-dashboards
Ibm cognos-build-data-marts-reports-and-dashboardsIbm cognos-build-data-marts-reports-and-dashboards
Ibm cognos-build-data-marts-reports-and-dashboardsAmit Sharma
 
Adf coursecontent(1)
Adf coursecontent(1)Adf coursecontent(1)
Adf coursecontent(1)Amit Sharma
 
Qlik view installation guide
Qlik view installation guideQlik view installation guide
Qlik view installation guideAmit Sharma
 
Adding metadata using smartview
Adding metadata using smartviewAdding metadata using smartview
Adding metadata using smartviewAmit Sharma
 

Destacado (19)

Oracle11g form course-curriculum
Oracle11g form course-curriculumOracle11g form course-curriculum
Oracle11g form course-curriculum
 
Getting started-with-oracle-so a-vii
Getting started-with-oracle-so a-viiGetting started-with-oracle-so a-vii
Getting started-with-oracle-so a-vii
 
Controlling accesst 1 aug
Controlling accesst 1 augControlling accesst 1 aug
Controlling accesst 1 aug
 
Force.com migration utility
Force.com migration utilityForce.com migration utility
Force.com migration utility
 
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
 
Hyperion planning scheduling data import
Hyperion planning scheduling data importHyperion planning scheduling data import
Hyperion planning scheduling data import
 
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
 
Hfm task atumation
Hfm task atumationHfm task atumation
Hfm task atumation
 
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
 
Oracle11g form-course-curriculum
Oracle11g form-course-curriculumOracle11g form-course-curriculum
Oracle11g form-course-curriculum
 
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
 
Oracle dataintegratorcurriculum
Oracle dataintegratorcurriculumOracle dataintegratorcurriculum
Oracle dataintegratorcurriculum
 
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
 
Build java-ee-applications-with-adf
Build java-ee-applications-with-adfBuild java-ee-applications-with-adf
Build java-ee-applications-with-adf
 
Obiee installation 31 july
Obiee installation 31 julyObiee installation 31 july
Obiee installation 31 july
 
Ibm cognos-build-data-marts-reports-and-dashboards
Ibm cognos-build-data-marts-reports-and-dashboardsIbm cognos-build-data-marts-reports-and-dashboards
Ibm cognos-build-data-marts-reports-and-dashboards
 
Adf coursecontent(1)
Adf coursecontent(1)Adf coursecontent(1)
Adf coursecontent(1)
 
Qlik view installation guide
Qlik view installation guideQlik view installation guide
Qlik view installation guide
 
Adding metadata using smartview
Adding metadata using smartviewAdding metadata using smartview
Adding metadata using smartview
 

Similar a User and group security migration

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
 
ESM Asset Model FlexConnector Developer's Guide for ESM 6.8c
ESM Asset Model FlexConnector Developer's Guide for ESM 6.8cESM Asset Model FlexConnector Developer's Guide for ESM 6.8c
ESM Asset Model FlexConnector Developer's Guide for ESM 6.8cProtect724v3
 
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
 
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
 
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
 
OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015Oro Inc.
 
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
 
R12 d49656 gc10-apps dba 19
R12 d49656 gc10-apps dba 19R12 d49656 gc10-apps dba 19
R12 d49656 gc10-apps dba 19zeesniper
 
Broncosbuild.xmlBuilds, tests, and runs the project Broncos..docx
Broncosbuild.xmlBuilds, tests, and runs the project Broncos..docxBroncosbuild.xmlBuilds, tests, and runs the project Broncos..docx
Broncosbuild.xmlBuilds, tests, and runs the project Broncos..docxcurwenmichaela
 

Similar a User and group security migration (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
 
ESM Asset Model FlexConnector Developer's Guide for ESM 6.8c
ESM Asset Model FlexConnector Developer's Guide for ESM 6.8cESM Asset Model FlexConnector Developer's Guide for ESM 6.8c
ESM Asset Model FlexConnector Developer's Guide for ESM 6.8c
 
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
 
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
 
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
 
Adobe Flex4
Adobe Flex4 Adobe Flex4
Adobe Flex4
 
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
 
Add on packages
Add on packagesAdd on packages
Add on packages
 
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
 
Dost.jar and fo.jar
Dost.jar and fo.jarDost.jar and fo.jar
Dost.jar and fo.jar
 
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
 
OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015OroCRM Partner Technical Training: September 2015
OroCRM Partner Technical Training: September 2015
 
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
 
R12 d49656 gc10-apps dba 19
R12 d49656 gc10-apps dba 19R12 d49656 gc10-apps dba 19
R12 d49656 gc10-apps dba 19
 
Broncosbuild.xmlBuilds, tests, and runs the project Broncos..docx
Broncosbuild.xmlBuilds, tests, and runs the project Broncos..docxBroncosbuild.xmlBuilds, tests, and runs the project Broncos..docx
Broncosbuild.xmlBuilds, tests, and runs the project Broncos..docx
 

Más de 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
 
Hyperion planning weekly distribution
Hyperion planning weekly distributionHyperion planning weekly distribution
Hyperion planning weekly distributionAmit 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
 
Security and-data-access-document
Security and-data-access-documentSecurity and-data-access-document
Security and-data-access-documentAmit Sharma
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-iiAmit Sharma
 
Sales force certification-lab
Sales force certification-labSales force certification-lab
Sales force certification-labAmit Sharma
 
Managing users-doc
Managing users-docManaging users-doc
Managing users-docAmit Sharma
 
Customizing sales force-interface
Customizing sales force-interfaceCustomizing sales force-interface
Customizing sales force-interfaceAmit Sharma
 

Más de Amit Sharma (17)

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
 
Hyperion planning weekly distribution
Hyperion planning weekly distributionHyperion planning weekly distribution
Hyperion planning weekly distribution
 
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
 
Security and-data-access-document
Security and-data-access-documentSecurity and-data-access-document
Security and-data-access-document
 
Sales force certification-lab-ii
Sales force certification-lab-iiSales force certification-lab-ii
Sales force certification-lab-ii
 
Sales force certification-lab
Sales force certification-labSales force certification-lab
Sales force certification-lab
 
Managing users-doc
Managing users-docManaging users-doc
Managing users-doc
 
Customizing sales force-interface
Customizing sales force-interfaceCustomizing sales force-interface
Customizing sales force-interface
 

Último

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
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
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
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
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 

Último (20)

DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
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
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
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
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
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
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 

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 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 th 10 Oct 2013 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 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