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

More Related Content

What's hot (17)

PDF
E mail and-workflow-administation
Amit Sharma
 
PPTX
Apex basics-for Beginners
hrakhra
 
PPTX
Introduction to visualforce
Rinku Saini
 
PDF
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
Amit Sharma
 
PPTX
Mulesoft salesforce connector to update Object.
Yogesh Chandr
 
PDF
Intro to Apex Programmers
Salesforce Developers
 
PPTX
Custom Controllers and Controller Extensions
Mohammed Safwat Abu Kwaik
 
PDF
IBM Connections mail with exchange backend
michele buccarello
 
PDF
Oracle EMC 12C Grand Tour
Rakesh Gujjarlapudi
 
DOCX
OBIEE 11g : Repository Creation Steps
Dharmaraj Borse
 
DOC
Oa Framework Tutorial
nolimit797
 
PDF
Abap proxies
szchowdhury
 
PPT
Microsoft Azure
Dima Maleev
 
PPT
New Features Of ASP.Net 4 0
Dima Maleev
 
PPT
Extensions in OAF
iWare Logic Technologies Pvt. Ltd.
 
PDF
Power Automate Techniques that "Saved Our Bacon"
Thomas Duff
 
PDF
Enable seo friendly url in websphere portal
michele buccarello
 
E mail and-workflow-administation
Amit Sharma
 
Apex basics-for Beginners
hrakhra
 
Introduction to visualforce
Rinku Saini
 
Salesforce interview-preparation-toolkit-formula-and-validation-rules-in-sale...
Amit Sharma
 
Mulesoft salesforce connector to update Object.
Yogesh Chandr
 
Intro to Apex Programmers
Salesforce Developers
 
Custom Controllers and Controller Extensions
Mohammed Safwat Abu Kwaik
 
IBM Connections mail with exchange backend
michele buccarello
 
Oracle EMC 12C Grand Tour
Rakesh Gujjarlapudi
 
OBIEE 11g : Repository Creation Steps
Dharmaraj Borse
 
Oa Framework Tutorial
nolimit797
 
Abap proxies
szchowdhury
 
Microsoft Azure
Dima Maleev
 
New Features Of ASP.Net 4 0
Dima Maleev
 
Power Automate Techniques that "Saved Our Bacon"
Thomas Duff
 
Enable seo friendly url in websphere portal
michele buccarello
 

Viewers also liked (19)

PDF
Oracle11g form course-curriculum
Amit Sharma
 
PDF
Getting started-with-oracle-so a-vii
Amit Sharma
 
PPT
Controlling accesst 1 aug
Amit Sharma
 
PDF
Force.com migration utility
Amit Sharma
 
PDF
Getting started-with-oracle-so a-iii
Amit Sharma
 
PPT
Hyperion planning scheduling data import
Amit Sharma
 
PDF
Getting started-with-oracle-so a-iv
Amit Sharma
 
PDF
Hfm task atumation
Amit Sharma
 
PDF
Getting started-with-oracle-so a-iii
Amit Sharma
 
PDF
Oracle11g form-course-curriculum
Amit Sharma
 
PDF
Getting started-with-oracle-so a-vi
Amit Sharma
 
PDF
Oracle dataintegratorcurriculum
Amit Sharma
 
PDF
Getting started-with-oracle-so a-i
Amit Sharma
 
PDF
Build java-ee-applications-with-adf
Amit Sharma
 
PPT
Obiee installation 31 july
Amit Sharma
 
PDF
Ibm cognos-build-data-marts-reports-and-dashboards
Amit Sharma
 
PDF
Adf coursecontent(1)
Amit Sharma
 
DOC
Qlik view installation guide
Amit Sharma
 
PPT
Adding metadata using smartview
Amit Sharma
 
Oracle11g form course-curriculum
Amit Sharma
 
Getting started-with-oracle-so a-vii
Amit Sharma
 
Controlling accesst 1 aug
Amit Sharma
 
Force.com migration utility
Amit Sharma
 
Getting started-with-oracle-so a-iii
Amit Sharma
 
Hyperion planning scheduling data import
Amit Sharma
 
Getting started-with-oracle-so a-iv
Amit Sharma
 
Hfm task atumation
Amit Sharma
 
Getting started-with-oracle-so a-iii
Amit Sharma
 
Oracle11g form-course-curriculum
Amit Sharma
 
Getting started-with-oracle-so a-vi
Amit Sharma
 
Oracle dataintegratorcurriculum
Amit Sharma
 
Getting started-with-oracle-so a-i
Amit Sharma
 
Build java-ee-applications-with-adf
Amit Sharma
 
Obiee installation 31 july
Amit Sharma
 
Ibm cognos-build-data-marts-reports-and-dashboards
Amit Sharma
 
Adf coursecontent(1)
Amit Sharma
 
Qlik view installation guide
Amit Sharma
 
Adding metadata using smartview
Amit Sharma
 
Ad

Similar to User and group security migration (20)

PDF
User and group security migration
Amit Sharma
 
PPTX
SFDC Deployments
Sujit Kumar
 
PPTX
Salesforce ANT migration
Cloud Analogy
 
PPTX
Force.com Migration Tool
Atul Gupta(8X)
 
PDF
Salesforce API Series: Release Management with the Metadata API webinar
Salesforce Developers
 
PDF
Best practices in using Salesforce Metadata API
Sanchit Dua
 
PDF
Team Development and Release Management
Salesforce Partners
 
PDF
Best practices in using Salesforce Metadata API
Sanchit Dua
 
PPTX
SAP and Salesforce Integration
Glenn Johnson
 
PDF
TechNet Live spor 1 sesjon 2 - sc-forefront 2
Anders Borchsenius
 
PDF
4 Ways to Fetch Metadata in Salesforce | Salesforce Metadata
AutoRABIT
 
PPTX
Meta data migration
Mahesh Varde
 
PDF
Winter 20 Salesforce Release Webinar
brightgenss
 
PDF
Org Merge Best Practices
Salesforce Developers
 
PDF
Salesforce CLI
Keir Bowden
 
PPTX
Deployments with VS Code and Salesforce CLI
ishratbhatti1
 
PDF
Use Custom Metadata Types for Easy ALM & Compliance for Your Custom Apps
Salesforce Developers
 
PDF
Salesforce Community Group Quito, Salesforce 101
Paola De la Torre
 
PPT
BizTalk Application Deployment
Daniel Toomey
 
PDF
Application Services On The Web Sales Forcecom
QConLondon2008
 
User and group security migration
Amit Sharma
 
SFDC Deployments
Sujit Kumar
 
Salesforce ANT migration
Cloud Analogy
 
Force.com Migration Tool
Atul Gupta(8X)
 
Salesforce API Series: Release Management with the Metadata API webinar
Salesforce Developers
 
Best practices in using Salesforce Metadata API
Sanchit Dua
 
Team Development and Release Management
Salesforce Partners
 
Best practices in using Salesforce Metadata API
Sanchit Dua
 
SAP and Salesforce Integration
Glenn Johnson
 
TechNet Live spor 1 sesjon 2 - sc-forefront 2
Anders Borchsenius
 
4 Ways to Fetch Metadata in Salesforce | Salesforce Metadata
AutoRABIT
 
Meta data migration
Mahesh Varde
 
Winter 20 Salesforce Release Webinar
brightgenss
 
Org Merge Best Practices
Salesforce Developers
 
Salesforce CLI
Keir Bowden
 
Deployments with VS Code and Salesforce CLI
ishratbhatti1
 
Use Custom Metadata Types for Easy ALM & Compliance for Your Custom Apps
Salesforce Developers
 
Salesforce Community Group Quito, Salesforce 101
Paola De la Torre
 
BizTalk Application Deployment
Daniel Toomey
 
Application Services On The Web Sales Forcecom
QConLondon2008
 
Ad

More from Amit Sharma (18)

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

Recently uploaded (20)

PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
The Future of Artificial Intelligence (AI)
Mukul
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 

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