SlideShare une entreprise Scribd logo
1  sur  7
1. Using Data Loader from the command line - Salesforce
Using the Salesforce Data Loader is convenient but laborious ...
Convenient because it is possible to retrieve any Salesforce database object : contacts,
customers, prospects, current opportunities, active users ...
But the handling is long because you only have to repeat orders in the GUI : copy / paste ID
and password, scan existing objects, select one, validate, select fields to export, possibly
building filters, validate, revalidate and produce the CSV file under the directory you
precised. Things are repeated more or less for other manipulations such as insert, update
and upsert adding the choice of the mapping file. And this sometimes several times per day.
So little interest to the user that he will see from a benevolent eye the automation off all
this. Good new, the use of Salesforce Data Loader in text mode is possible (-:
You just need to know if you connect to the internet via a proxy or live.
2. Start by creating a new directory on your PC
Create SF subdirectory D:Data(To change depending on your PC configuration, yours
needs)
Go to C:Program Files (x86)salesforce.comData Loader (possibly adjusted according to the
installation directory of your data loader)
Copy the bin directories, Java, Samples and dataloader-XX.0.0 uber.jar to D:DataSF. These
directories are used regardless of the type of operation performed: insert, export ...
Create directory export D:DataSFexport, D:DataSFimport, D:DataSFupdate,
D:DataSFupsert
3. Create three empty files :
key.txt, config.properties, process-conf.xml (confirm properties and xml extensions despite
the Windows warning messages). Place them in D:DataSFexport
These directory and files are used for a single operation: export Salesforce data.
The principle is to separate the files containing the SQL query to export (Salesforce's called
SOQL) and the file with passwords for maintenance issues. When you change your password,
there is only one place to change them!
4. Configure the files:
We first set config.properties:
#Loader Config
#03/04/2015
#sfdc.debugMessages=true
#sfdc.debugMessagesFile = D:Donneessfinsert1AccountExport.log these 2 lines are comments
process.encryptionKeyFile=D:DonneesSFinsertkey.txt #way to your key.txt file don’t forget the

sfdc.endpoint=https://login.salesforce.com
sfdc.username=your_salesforce_email #No « « no ‘’
sfdc.password=To-INQUIRE we will come back to this
sfdc.proxyUsername=ID proxy
sfdc.proxyPassword= To-INQUIRE we will come back to this
sfdc.proxyHost= proxy parameters see in your internet brownser
sfdc.proxyPort= proxy parameters see in your internet brownser
sfdc.loadBatchSize=100
sfdc.timeoutSecs=600
This is where things get complicated a bit. Passwords must be encrypted. For this, Salesforce
provides an encryption program. (you copy the bin directory did you ?)
You must start the Windows’s console (under Start Menu, Search programs and files, type
cmd).
Step 1: Move to the bin directory with the command cd "cd D:DataSFbin" (remember DOS
commands ?). Type the following command : encrypt.bat
TheTextYouWantImagineAnythingYouWant -g
Figure 2 CMD window in Windows 7
Copy and paste the result of the command in the encryption key.txt file. no need to put "".
Save changes. Pay attention to space, no spKey.txt close the file. End of the step 1.
Step 2: Always in the console, always under D:DataSFbin, run the following command
encrypt.bat YourProxipassword –e "D:DataSFimportkey.txt".
Step 3: Password encryption password Salesforce + token concatenated without spaces.
Always in the console, always under D:DataSFbin, run the following command encrypt.bat
YourSalesforcePasswordWith theEncryptedToken –e " D:DataSFexportkey.txt". Set aside
the encrypted password generated.
Step 4: Open the config.propertie file. The goal is to complete all the parameters with the
encrypted passwords obtained.
1. Your ID recognized by the proxy
2. Your CDMrecognized by the proxy and encrypted now
3. Your Login Salesforce
4. Your MDP + Salesforce token concatenated and encrypted now
Save changes.
Work on the config.properties file is finished.
We configure process-conf.xml by copying this in-process conf.xml
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-
beans.dtd">
<beans>
<!--
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
oooooooooooooooooooooooooooooooooooo
ooooooooooooooooooooooooooo PREMIER EXTRACT
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- RESTE A METTRE LA DATE DANS LE FICHIER EN SORTIE ET REGLER LES REPERTOIRES pour
SAUVEGARDER -->
<!-- LES CSV Exports a deposer dans les repertoires habituels D:X_RepDepotFiles_TmpMAJ Salesforce_
Extract Cptes Distrib_Users
puis creer les .bat et la doc d'installation -->
<bean id="ExtractUser"
class="com.salesforce.dataloader.process.ProcessRunner"
singleton="false">
<description>ExtractUser job gets User info from salesforce and saves info into a CSV file.</description>
<property name="name" value="ExtractUser"/>
<property name="configOverrideMap">
<map>
<!-- Attention pour le moment 12/02/2015, concernant les commentaires les caracteres accentues ne passent
pas dans l'export et provoquent des erreurs
Ligne de commande process.bat "D:DonneesSFtest" ExtractUser -->
<!-- Fichiers de logs -->
<entry key="sfdc.debugMessages" value="true"/>
<entry key="sfdc.debugMessagesFile" value="D:DonneesSFtestlogExtractUser.log"/>
<!-- Parametres extraction Salesforce idema config du dataloader-->
<entry key="sfdc.timeoutSecs" value="600"/>
<entry key="sfdc.loadBatchSize" value="200"/>
<entry key="sfdc.entity" value="Account"/>
<entry key="sfdc.extractionRequestSize" value="500"/>
<entry key="sfdc.entity" value="User"/>
<!-- requete SOQL-->
<entry key="sfdc.extractionSOQL" value="Select Id, LastName, FirstName, Username, CommunityNickname,
CompanyName, Division, Department, Title, City, Email, IsActive, UserRoleId, ProfileId, UserType,
DelegatedApproverId, ManagerId, LastLoginDate, CreatedDate, LastModifiedDate, DesactivOrderDat__c,
CreatedById, LastModifiedById, IsPortalEnabled, PerId__c, Agence__c, EmployeeNum__c, BU__c,
Pointdevente__c, Brand__c, Username__c, LDAPLogin__c, RegDCDiv__c, SousRegion__c, Marche__c,
CompanyName__c, PerformId__c, resp_workflow_dae__c, MultiPDV__c, CodeEnseigne__c FROM User"/>
<!-- Nom du process, pour nous extract, possibilite de faire toutes les autres operation a condition d'avoir
fichier sdl et regler-->
<entry key="process.operation" value="extract"/>
<!-- reglage export, fichier sortie, et logs en cas d'erreur -->
<entry key="dataAccess.type" value="csvWrite"/>
<entry key="dataAccess.readUTF8" value="true"/>
<entry key="dataAccess.writeUTF8" value="true"/>
<entry key="dataAccess.name" value="D:Donnees_ Extract Cptes Distrib_UsersUser_Salesforce.csv"/>
<entry key="process.outputError" value="D:DonneesSFtestlogErrorExtractUser.csv"/>
</map>
</property>
</bean>
</beans>
Some explanations. The most important part of the file is the following entry:
<entry key = "sfdc.extractionSOQL" value = "Select ID, LastName, FirstName, Username,
CommunityNickname, CompanyName, Division, Department, Title, City, Email, IsActive,
UserRoleId, ProfileId, UserType, DelegatedApproverId, ManagerID, LastLoginDate,
CreatedDate , LastModifiedDate, DesactivOrderDat__c, CreatedById, LastModifiedById,
IsPortalEnabled, PerId__c, Agence__c, EmployeeNum__c, BU__c, Pointdevente__c,
Brand__c, Username__c, LDAPLogin__c, RegDCDiv__c, SousRegion__c, Marche__c,
CompanyName__c, PerformId__c, resp_workflow_dae__c, MultiPDV__c, CodeEnseigne__c
FROM User "/>
This part is the SOQL order. It could for example be adapted as follows according your needs
:
<entry key = "sfdc.extractionSOQL" value = "Select * FROM User" />
Just copy and paste your usual application as it appears in your Data Loader window
between characters "."
There is a second important input is <bean id = "ExtractUser" we will return.
5. Creating execution file
We reach the goal, go to the office, export.bat create the file, copy the following lines.
echo off
cd "D:DataSFbin"
process.bat start "D:Datasfexport" ExtractUser this tell you something?
6. Operation:
Double click on the file export.bat. After some time, you will have the query result in a cvs
file located under D:Data_ Extract CPTES Distrib_Users
Then simply to provide a task to run automatically, for example to recover your PC to start
the file without anything to do.
7. Futur
It is possible to export more by .XML file. It is possible to do insert, update and upsert, any
operation you do with the data loader. We will return if you suggest us to.
Thanks !

Contenu connexe

Tendances

Database application and design
Database application and designDatabase application and design
Database application and designsieedah
 
Share point review qustions
Share point review qustionsShare point review qustions
Share point review qustionsthan sare
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Amit Sharma
 
Oracle Endeca Commerce - Installation Guide
Oracle Endeca Commerce - Installation GuideOracle Endeca Commerce - Installation Guide
Oracle Endeca Commerce - Installation GuideKeyur Shah
 
Oracle Endeca Developer's Guide
Oracle Endeca Developer's GuideOracle Endeca Developer's Guide
Oracle Endeca Developer's GuideKeyur Shah
 
OBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsOBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsDharmaraj Borse
 
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book Feras Ahmad
 
( 13 ) Office 2007 Coding With Excel And Excel Services
( 13 ) Office 2007   Coding With Excel And Excel Services( 13 ) Office 2007   Coding With Excel And Excel Services
( 13 ) Office 2007 Coding With Excel And Excel ServicesLiquidHub
 
Style Intelligence Evaluation Documentation
Style Intelligence Evaluation DocumentationStyle Intelligence Evaluation Documentation
Style Intelligence Evaluation DocumentationArleneWatson
 
Oracle Application Framework Cases
Oracle Application Framework Cases Oracle Application Framework Cases
Oracle Application Framework Cases Feras Ahmad
 
Summer '16 Realease notes
Summer '16 Realease notesSummer '16 Realease notes
Summer '16 Realease notesaggopal1011
 
Learning How to Shape and Configure an OData Service for High Performing Web ...
Learning How to Shape and Configure an OData Service for High Performing Web ...Learning How to Shape and Configure an OData Service for High Performing Web ...
Learning How to Shape and Configure an OData Service for High Performing Web ...Woodruff Solutions LLC
 
Gaining the Knowledge of the Open Data Protocol (OData) - Prairie Dev Con
Gaining the Knowledge of the Open Data Protocol (OData) - Prairie Dev ConGaining the Knowledge of the Open Data Protocol (OData) - Prairie Dev Con
Gaining the Knowledge of the Open Data Protocol (OData) - Prairie Dev ConWoodruff Solutions LLC
 
Dh2 Apps Training Part2
Dh2   Apps Training Part2Dh2   Apps Training Part2
Dh2 Apps Training Part2jamram82
 
Apex basics-for Beginners
Apex basics-for BeginnersApex basics-for Beginners
Apex basics-for Beginnershrakhra
 
Spring review_for Semester II of Year 4
Spring review_for Semester II of Year 4Spring review_for Semester II of Year 4
Spring review_for Semester II of Year 4than sare
 
Oracle D2K reports
Oracle D2K reports Oracle D2K reports
Oracle D2K reports Rajesh Ch
 

Tendances (20)

Database application and design
Database application and designDatabase application and design
Database application and design
 
Share point review qustions
Share point review qustionsShare point review qustions
Share point review qustions
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1
 
Oracle Endeca Commerce - Installation Guide
Oracle Endeca Commerce - Installation GuideOracle Endeca Commerce - Installation Guide
Oracle Endeca Commerce - Installation Guide
 
Oracle Endeca Developer's Guide
Oracle Endeca Developer's GuideOracle Endeca Developer's Guide
Oracle Endeca Developer's Guide
 
Asp.net
Asp.netAsp.net
Asp.net
 
OBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsOBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation Steps
 
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
 
( 13 ) Office 2007 Coding With Excel And Excel Services
( 13 ) Office 2007   Coding With Excel And Excel Services( 13 ) Office 2007   Coding With Excel And Excel Services
( 13 ) Office 2007 Coding With Excel And Excel Services
 
Style Intelligence Evaluation Documentation
Style Intelligence Evaluation DocumentationStyle Intelligence Evaluation Documentation
Style Intelligence Evaluation Documentation
 
Oracle Application Framework Cases
Oracle Application Framework Cases Oracle Application Framework Cases
Oracle Application Framework Cases
 
Summer '16 Realease notes
Summer '16 Realease notesSummer '16 Realease notes
Summer '16 Realease notes
 
Learning How to Shape and Configure an OData Service for High Performing Web ...
Learning How to Shape and Configure an OData Service for High Performing Web ...Learning How to Shape and Configure an OData Service for High Performing Web ...
Learning How to Shape and Configure an OData Service for High Performing Web ...
 
Gaining the Knowledge of the Open Data Protocol (OData) - Prairie Dev Con
Gaining the Knowledge of the Open Data Protocol (OData) - Prairie Dev ConGaining the Knowledge of the Open Data Protocol (OData) - Prairie Dev Con
Gaining the Knowledge of the Open Data Protocol (OData) - Prairie Dev Con
 
Dh2 Apps Training Part2
Dh2   Apps Training Part2Dh2   Apps Training Part2
Dh2 Apps Training Part2
 
Microsoft Azure
Microsoft AzureMicrosoft Azure
Microsoft Azure
 
Apex basics-for Beginners
Apex basics-for BeginnersApex basics-for Beginners
Apex basics-for Beginners
 
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
 
Netfx4
Netfx4Netfx4
Netfx4
 
Oracle D2K reports
Oracle D2K reports Oracle D2K reports
Oracle D2K reports
 

En vedette

Webinar: Take Control of Your Org with Salesforce Optimizer
Webinar: Take Control of Your Org with Salesforce OptimizerWebinar: Take Control of Your Org with Salesforce Optimizer
Webinar: Take Control of Your Org with Salesforce OptimizerSalesforce Admins
 
Importing data to salesforce
Importing data to salesforceImporting data to salesforce
Importing data to salesforceNetStronghold
 
Take Security to the Next Level w/ Lightning Login
Take Security to the Next Level w/ Lightning Login Take Security to the Next Level w/ Lightning Login
Take Security to the Next Level w/ Lightning Login Salesforce Admins
 
Get Nerdy with Lightning Experience Page Layouts
Get Nerdy with Lightning Experience Page LayoutsGet Nerdy with Lightning Experience Page Layouts
Get Nerdy with Lightning Experience Page LayoutsSalesforce Admins
 
DF17 Admin Track Speaker Insights
DF17 Admin Track Speaker InsightsDF17 Admin Track Speaker Insights
DF17 Admin Track Speaker InsightsSalesforce Admins
 
2016 Opportunity Process 111116
2016 Opportunity Process 1111162016 Opportunity Process 111116
2016 Opportunity Process 111116Randi Thompson
 
6 Reporting Formulas That Will Delight Your Users
6 Reporting FormulasThat Will Delight Your Users6 Reporting FormulasThat Will Delight Your Users
6 Reporting Formulas That Will Delight Your UsersSalesforce Admins
 
Using Personas for Salesforce Accessibility and Security
Using Personas for Salesforce Accessibility and SecurityUsing Personas for Salesforce Accessibility and Security
Using Personas for Salesforce Accessibility and SecuritySalesforce Admins
 
How to Build an AppExchange Strategy
How to Build an AppExchange StrategyHow to Build an AppExchange Strategy
How to Build an AppExchange StrategySalesforce Admins
 
Webinar Coding for Salesforce Admins
Webinar Coding for Salesforce AdminsWebinar Coding for Salesforce Admins
Webinar Coding for Salesforce AdminsSalesforce Admins
 
How Salesforce Launched Lightning in 7 Steps
How Salesforce Launched Lightning in 7 StepsHow Salesforce Launched Lightning in 7 Steps
How Salesforce Launched Lightning in 7 StepsSalesforce Admins
 
Build Your Lightning Rollout Plan - September 2017
Build Your Lightning Rollout Plan - September 2017Build Your Lightning Rollout Plan - September 2017
Build Your Lightning Rollout Plan - September 2017Salesforce Admins
 

En vedette (13)

Webinar: Take Control of Your Org with Salesforce Optimizer
Webinar: Take Control of Your Org with Salesforce OptimizerWebinar: Take Control of Your Org with Salesforce Optimizer
Webinar: Take Control of Your Org with Salesforce Optimizer
 
Introduction to Flow
Introduction to FlowIntroduction to Flow
Introduction to Flow
 
Importing data to salesforce
Importing data to salesforceImporting data to salesforce
Importing data to salesforce
 
Take Security to the Next Level w/ Lightning Login
Take Security to the Next Level w/ Lightning Login Take Security to the Next Level w/ Lightning Login
Take Security to the Next Level w/ Lightning Login
 
Get Nerdy with Lightning Experience Page Layouts
Get Nerdy with Lightning Experience Page LayoutsGet Nerdy with Lightning Experience Page Layouts
Get Nerdy with Lightning Experience Page Layouts
 
DF17 Admin Track Speaker Insights
DF17 Admin Track Speaker InsightsDF17 Admin Track Speaker Insights
DF17 Admin Track Speaker Insights
 
2016 Opportunity Process 111116
2016 Opportunity Process 1111162016 Opportunity Process 111116
2016 Opportunity Process 111116
 
6 Reporting Formulas That Will Delight Your Users
6 Reporting FormulasThat Will Delight Your Users6 Reporting FormulasThat Will Delight Your Users
6 Reporting Formulas That Will Delight Your Users
 
Using Personas for Salesforce Accessibility and Security
Using Personas for Salesforce Accessibility and SecurityUsing Personas for Salesforce Accessibility and Security
Using Personas for Salesforce Accessibility and Security
 
How to Build an AppExchange Strategy
How to Build an AppExchange StrategyHow to Build an AppExchange Strategy
How to Build an AppExchange Strategy
 
Webinar Coding for Salesforce Admins
Webinar Coding for Salesforce AdminsWebinar Coding for Salesforce Admins
Webinar Coding for Salesforce Admins
 
How Salesforce Launched Lightning in 7 Steps
How Salesforce Launched Lightning in 7 StepsHow Salesforce Launched Lightning in 7 Steps
How Salesforce Launched Lightning in 7 Steps
 
Build Your Lightning Rollout Plan - September 2017
Build Your Lightning Rollout Plan - September 2017Build Your Lightning Rollout Plan - September 2017
Build Your Lightning Rollout Plan - September 2017
 

Similaire à Salesforce Admin's guide : the data loader from the command line

New Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP ConnectorsNew Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP Connectorsrtretola
 
Evolutionary db development
Evolutionary db development Evolutionary db development
Evolutionary db development Open Party
 
Working With The Symfony Admin Generator
Working With The Symfony Admin GeneratorWorking With The Symfony Admin Generator
Working With The Symfony Admin GeneratorJohn Cleveley
 
Your admin toolbelt is not complete without Salesforce DX
Your admin toolbelt is not complete without Salesforce DXYour admin toolbelt is not complete without Salesforce DX
Your admin toolbelt is not complete without Salesforce DXDaniel Stange
 
Pandora FMS: DB2 Enterprise Plugin
Pandora FMS: DB2 Enterprise PluginPandora FMS: DB2 Enterprise Plugin
Pandora FMS: DB2 Enterprise PluginPandora FMS
 
Shared Coursework in Cyber Security Instructions Manual .docx
Shared Coursework in Cyber Security Instructions Manual .docxShared Coursework in Cyber Security Instructions Manual .docx
Shared Coursework in Cyber Security Instructions Manual .docxedgar6wallace88877
 
BP501 - Building and deploying custom IBM sametime connect client installatio...
BP501 - Building and deploying custom IBM sametime connect client installatio...BP501 - Building and deploying custom IBM sametime connect client installatio...
BP501 - Building and deploying custom IBM sametime connect client installatio...Carl Tyler
 
Mule using Salesforce
Mule using SalesforceMule using Salesforce
Mule using SalesforceKhasim Cise
 
PowerShell-and-DSC-Enables-DSCDevOps-1.pptx
PowerShell-and-DSC-Enables-DSCDevOps-1.pptxPowerShell-and-DSC-Enables-DSCDevOps-1.pptx
PowerShell-and-DSC-Enables-DSCDevOps-1.pptxprabhatthunuguntla
 
Asian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On UblAsian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On Ublnewrforce
 
An overview of snowflake
An overview of snowflakeAn overview of snowflake
An overview of snowflakeSivakumar Ramar
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-codeNarayana Reddy
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-codeNarayana Reddy
 
Simplify your professional web development with symfony
Simplify your professional web development with symfonySimplify your professional web development with symfony
Simplify your professional web development with symfonyFrancois Zaninotto
 
Fix me if you can - DrupalCon prague
Fix me if you can - DrupalCon pragueFix me if you can - DrupalCon prague
Fix me if you can - DrupalCon praguehernanibf
 
Building and Deploying PHP Apps Using phing
Building and Deploying PHP Apps Using phingBuilding and Deploying PHP Apps Using phing
Building and Deploying PHP Apps Using phingMihail Irintchev
 
Deploying DAOS and ID Vault
Deploying DAOS and ID VaultDeploying DAOS and ID Vault
Deploying DAOS and ID VaultLuis Guirigay
 

Similaire à Salesforce Admin's guide : the data loader from the command line (20)

New Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP ConnectorsNew Flash Builder 4 WSDL and HTTP Connectors
New Flash Builder 4 WSDL and HTTP Connectors
 
Evolutionary db development
Evolutionary db development Evolutionary db development
Evolutionary db development
 
Working With The Symfony Admin Generator
Working With The Symfony Admin GeneratorWorking With The Symfony Admin Generator
Working With The Symfony Admin Generator
 
Your admin toolbelt is not complete without Salesforce DX
Your admin toolbelt is not complete without Salesforce DXYour admin toolbelt is not complete without Salesforce DX
Your admin toolbelt is not complete without Salesforce DX
 
Pandora FMS: DB2 Enterprise Plugin
Pandora FMS: DB2 Enterprise PluginPandora FMS: DB2 Enterprise Plugin
Pandora FMS: DB2 Enterprise Plugin
 
Shared Coursework in Cyber Security Instructions Manual .docx
Shared Coursework in Cyber Security Instructions Manual .docxShared Coursework in Cyber Security Instructions Manual .docx
Shared Coursework in Cyber Security Instructions Manual .docx
 
BP501 - Building and deploying custom IBM sametime connect client installatio...
BP501 - Building and deploying custom IBM sametime connect client installatio...BP501 - Building and deploying custom IBM sametime connect client installatio...
BP501 - Building and deploying custom IBM sametime connect client installatio...
 
Mule using Salesforce
Mule using SalesforceMule using Salesforce
Mule using Salesforce
 
mule salesforce
mule salesforcemule salesforce
mule salesforce
 
PowerShell-and-DSC-Enables-DSCDevOps-1.pptx
PowerShell-and-DSC-Enables-DSCDevOps-1.pptxPowerShell-and-DSC-Enables-DSCDevOps-1.pptx
PowerShell-and-DSC-Enables-DSCDevOps-1.pptx
 
Asian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On UblAsian Spirit 3 Day Dba On Ubl
Asian Spirit 3 Day Dba On Ubl
 
An overview of snowflake
An overview of snowflakeAn overview of snowflake
An overview of snowflake
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-code
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-code
 
Symfony2 revealed
Symfony2 revealedSymfony2 revealed
Symfony2 revealed
 
Simplify your professional web development with symfony
Simplify your professional web development with symfonySimplify your professional web development with symfony
Simplify your professional web development with symfony
 
Fix me if you can - DrupalCon prague
Fix me if you can - DrupalCon pragueFix me if you can - DrupalCon prague
Fix me if you can - DrupalCon prague
 
Building and Deploying PHP Apps Using phing
Building and Deploying PHP Apps Using phingBuilding and Deploying PHP Apps Using phing
Building and Deploying PHP Apps Using phing
 
Sqllite
SqlliteSqllite
Sqllite
 
Deploying DAOS and ID Vault
Deploying DAOS and ID VaultDeploying DAOS and ID Vault
Deploying DAOS and ID Vault
 

Dernier

CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 

Dernier (20)

CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 

Salesforce Admin's guide : the data loader from the command line

  • 1.
  • 2. 1. Using Data Loader from the command line - Salesforce Using the Salesforce Data Loader is convenient but laborious ... Convenient because it is possible to retrieve any Salesforce database object : contacts, customers, prospects, current opportunities, active users ... But the handling is long because you only have to repeat orders in the GUI : copy / paste ID and password, scan existing objects, select one, validate, select fields to export, possibly building filters, validate, revalidate and produce the CSV file under the directory you precised. Things are repeated more or less for other manipulations such as insert, update and upsert adding the choice of the mapping file. And this sometimes several times per day. So little interest to the user that he will see from a benevolent eye the automation off all this. Good new, the use of Salesforce Data Loader in text mode is possible (-: You just need to know if you connect to the internet via a proxy or live. 2. Start by creating a new directory on your PC Create SF subdirectory D:Data(To change depending on your PC configuration, yours needs) Go to C:Program Files (x86)salesforce.comData Loader (possibly adjusted according to the installation directory of your data loader) Copy the bin directories, Java, Samples and dataloader-XX.0.0 uber.jar to D:DataSF. These directories are used regardless of the type of operation performed: insert, export ... Create directory export D:DataSFexport, D:DataSFimport, D:DataSFupdate, D:DataSFupsert 3. Create three empty files : key.txt, config.properties, process-conf.xml (confirm properties and xml extensions despite the Windows warning messages). Place them in D:DataSFexport These directory and files are used for a single operation: export Salesforce data. The principle is to separate the files containing the SQL query to export (Salesforce's called SOQL) and the file with passwords for maintenance issues. When you change your password, there is only one place to change them! 4. Configure the files: We first set config.properties: #Loader Config
  • 3. #03/04/2015 #sfdc.debugMessages=true #sfdc.debugMessagesFile = D:Donneessfinsert1AccountExport.log these 2 lines are comments process.encryptionKeyFile=D:DonneesSFinsertkey.txt #way to your key.txt file don’t forget the sfdc.endpoint=https://login.salesforce.com sfdc.username=your_salesforce_email #No « « no ‘’ sfdc.password=To-INQUIRE we will come back to this sfdc.proxyUsername=ID proxy sfdc.proxyPassword= To-INQUIRE we will come back to this sfdc.proxyHost= proxy parameters see in your internet brownser sfdc.proxyPort= proxy parameters see in your internet brownser sfdc.loadBatchSize=100 sfdc.timeoutSecs=600 This is where things get complicated a bit. Passwords must be encrypted. For this, Salesforce provides an encryption program. (you copy the bin directory did you ?) You must start the Windows’s console (under Start Menu, Search programs and files, type cmd). Step 1: Move to the bin directory with the command cd "cd D:DataSFbin" (remember DOS commands ?). Type the following command : encrypt.bat TheTextYouWantImagineAnythingYouWant -g Figure 2 CMD window in Windows 7 Copy and paste the result of the command in the encryption key.txt file. no need to put "". Save changes. Pay attention to space, no spKey.txt close the file. End of the step 1.
  • 4. Step 2: Always in the console, always under D:DataSFbin, run the following command encrypt.bat YourProxipassword –e "D:DataSFimportkey.txt". Step 3: Password encryption password Salesforce + token concatenated without spaces. Always in the console, always under D:DataSFbin, run the following command encrypt.bat YourSalesforcePasswordWith theEncryptedToken –e " D:DataSFexportkey.txt". Set aside the encrypted password generated. Step 4: Open the config.propertie file. The goal is to complete all the parameters with the encrypted passwords obtained. 1. Your ID recognized by the proxy 2. Your CDMrecognized by the proxy and encrypted now 3. Your Login Salesforce 4. Your MDP + Salesforce token concatenated and encrypted now Save changes. Work on the config.properties file is finished. We configure process-conf.xml by copying this in-process conf.xml <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring- beans.dtd"> <beans> <!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooo ooooooooooooooooooooooooooo PREMIER EXTRACT oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo --> <!-- RESTE A METTRE LA DATE DANS LE FICHIER EN SORTIE ET REGLER LES REPERTOIRES pour SAUVEGARDER --> <!-- LES CSV Exports a deposer dans les repertoires habituels D:X_RepDepotFiles_TmpMAJ Salesforce_ Extract Cptes Distrib_Users puis creer les .bat et la doc d'installation --> <bean id="ExtractUser" class="com.salesforce.dataloader.process.ProcessRunner" singleton="false"> <description>ExtractUser job gets User info from salesforce and saves info into a CSV file.</description> <property name="name" value="ExtractUser"/>
  • 5. <property name="configOverrideMap"> <map> <!-- Attention pour le moment 12/02/2015, concernant les commentaires les caracteres accentues ne passent pas dans l'export et provoquent des erreurs Ligne de commande process.bat "D:DonneesSFtest" ExtractUser --> <!-- Fichiers de logs --> <entry key="sfdc.debugMessages" value="true"/> <entry key="sfdc.debugMessagesFile" value="D:DonneesSFtestlogExtractUser.log"/> <!-- Parametres extraction Salesforce idema config du dataloader--> <entry key="sfdc.timeoutSecs" value="600"/> <entry key="sfdc.loadBatchSize" value="200"/> <entry key="sfdc.entity" value="Account"/> <entry key="sfdc.extractionRequestSize" value="500"/> <entry key="sfdc.entity" value="User"/> <!-- requete SOQL--> <entry key="sfdc.extractionSOQL" value="Select Id, LastName, FirstName, Username, CommunityNickname, CompanyName, Division, Department, Title, City, Email, IsActive, UserRoleId, ProfileId, UserType, DelegatedApproverId, ManagerId, LastLoginDate, CreatedDate, LastModifiedDate, DesactivOrderDat__c, CreatedById, LastModifiedById, IsPortalEnabled, PerId__c, Agence__c, EmployeeNum__c, BU__c, Pointdevente__c, Brand__c, Username__c, LDAPLogin__c, RegDCDiv__c, SousRegion__c, Marche__c, CompanyName__c, PerformId__c, resp_workflow_dae__c, MultiPDV__c, CodeEnseigne__c FROM User"/> <!-- Nom du process, pour nous extract, possibilite de faire toutes les autres operation a condition d'avoir fichier sdl et regler--> <entry key="process.operation" value="extract"/> <!-- reglage export, fichier sortie, et logs en cas d'erreur --> <entry key="dataAccess.type" value="csvWrite"/> <entry key="dataAccess.readUTF8" value="true"/> <entry key="dataAccess.writeUTF8" value="true"/> <entry key="dataAccess.name" value="D:Donnees_ Extract Cptes Distrib_UsersUser_Salesforce.csv"/> <entry key="process.outputError" value="D:DonneesSFtestlogErrorExtractUser.csv"/> </map>
  • 6. </property> </bean> </beans> Some explanations. The most important part of the file is the following entry: <entry key = "sfdc.extractionSOQL" value = "Select ID, LastName, FirstName, Username, CommunityNickname, CompanyName, Division, Department, Title, City, Email, IsActive, UserRoleId, ProfileId, UserType, DelegatedApproverId, ManagerID, LastLoginDate, CreatedDate , LastModifiedDate, DesactivOrderDat__c, CreatedById, LastModifiedById, IsPortalEnabled, PerId__c, Agence__c, EmployeeNum__c, BU__c, Pointdevente__c, Brand__c, Username__c, LDAPLogin__c, RegDCDiv__c, SousRegion__c, Marche__c, CompanyName__c, PerformId__c, resp_workflow_dae__c, MultiPDV__c, CodeEnseigne__c FROM User "/> This part is the SOQL order. It could for example be adapted as follows according your needs : <entry key = "sfdc.extractionSOQL" value = "Select * FROM User" /> Just copy and paste your usual application as it appears in your Data Loader window between characters "." There is a second important input is <bean id = "ExtractUser" we will return. 5. Creating execution file We reach the goal, go to the office, export.bat create the file, copy the following lines. echo off cd "D:DataSFbin" process.bat start "D:Datasfexport" ExtractUser this tell you something? 6. Operation: Double click on the file export.bat. After some time, you will have the query result in a cvs file located under D:Data_ Extract CPTES Distrib_Users Then simply to provide a task to run automatically, for example to recover your PC to start the file without anything to do. 7. Futur
  • 7. It is possible to export more by .XML file. It is possible to do insert, update and upsert, any operation you do with the data loader. We will return if you suggest us to. Thanks !