681
Command Line Data Loader
Data Loader is used to data upload or load for Salesforce.com. Now we can used Data Loader through command line means we can write our own SOQL and CSV file. For that we have written following steps:
- Create test folder: C:\Program Files\salesforce.com\Apex Data Loader 14.0\test
- It must contain process-conf.xml, log-conf.xml and key.txt.
- Above xml file can copy from config folder.
- Key file contains Password encrypted format.
· Open cmd and go to casino online C:\Program Files\salesforce.com\Apex Data Loader 14.0\bin
….\bin> encrypt.bat –g “Pwd”
· Enter you will get encrypted password like
….\bin>sadsad2232ds3
….\bin>sadsad2232ds3
· Copy above password and past into Key.txt file.
….\bin> encrypt.bat –g Passsword “C:\Program Files\salesforce.com\Apex Data Loader 14.0\test\Key.txt”
Above steps for Encrypted password
5. Edit the process-conf.xml file and copy past the following code in Bean and Save.
Inserts artist names from CSV file into Artist custom object.
6. Run through command line:
../bin> process.bat “c:\program files\salesforce.com\apex data loader 9.0\test\” csvAccountExtractProcess
Note: To call different processes one after the other, create a batch file in the bin directory and prefixing each call with the “call” function. The image below shows how to call the csvAccountExtractProcess 3 times and clearing the screen after each run.
zp8497586rq