Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,34 @@ The open source version of dataloader is available from: https://github.com/forc

##Requirements:

1. Java 1.6+, available in the PATH
1. Java SE >=11, available in the PATH (https://www.oracle.com/technetwork/java/javase/downloads/index.html)


2. DataLoader JAR file from Windows or built from the open source project.
(The current name/version of the jar file is: dataloader-30.0.0-uber.jar)

##Steps:

1. Clone this project
```
$ git clone https://github.com/sthiyaga/dataloader.git
```
2. Copy the dataloader-30.0.0-uber.jar file to dataloader/ directory
3. Generate the private key to encrypt the password
2. Generate the private key to encrypt the password
```
$ bin/encrypt.sh -g <some-random-seed-text>
$ bin/encrypt.sh -k <path to private.key file (ex. conf/>private.key)>
```
4. Copy the output from Step 3 above to conf/private.key (replacing the text in there)
5. Encrypt the salesforce password (+security token, if required) using the generated private key

3. Encrypt the salesforce password (+security token, if required) using the generated private key
```
$ bin/encrypt.sh -e "password+security token" conf/private.key
$ bin/encrypt.sh -e <password> conf/private.key
```
6. Copy the output from Step 4 above to the conf/config.properties file for the sfdc.password token
7. Update the conf/config.properties file with sfdc.username and sfdc.endpoint token values
8. Optionally, adjust any other parameters in the conf/config.properties file
9. Run the sample account extract process
4. Copy the output from Step 3 above to the conf/config.properties file for the sfdc.password token
5. Update the conf/config.properties file with sfdc.username and sfdc.endpoint token values
6. Optionally, adjust any other parameters in the conf/config.properties file
7. Run the sample account extract process
```
$ bin/process.sh csvAccountExtractProcess
```

This should produce the output file in the data/ directory and if the debug log was enabled, the trace file in the status/ directory.

Enjoy!
This runs the extract process as configured inside process-conf.xml

-Senthil
Credits: Senthil Thiyagarajan

2 changes: 1 addition & 1 deletion bin/encrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ if [ "$JAVA" == "" ]; then
echo "Unable to find Java Runtime in PATH";
exit -1;
else
$JAVA -cp dataloader-30.0.0-uber.jar com.salesforce.dataloader.security.EncryptionUtil "$@" | sed 's/^.*) \- //g'
$JAVA -cp lib/dataloader-46.0.0-uber.jar com.salesforce.dataloader.security.EncryptionUtil "$@" | sed 's/^.*) \- //g'
fi
2 changes: 1 addition & 1 deletion bin/process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ if [ "$JAVA" == "" ]; then
echo "Unable to find Java Runtime in PATH"
exit -1
else
$JAVA -cp dataloader-30.0.0-uber.jar -Dsalesforce.config.dir=$CONF_DIR com.salesforce.dataloader.process.ProcessRunner process.name=$PROCESS
$JAVA -cp lib/dataloader-46.0.0-uber.jar -Dsalesforce.config.dir=$CONF_DIR com.salesforce.dataloader.process.ProcessRunner process.name=$PROCESS
fi

1 change: 0 additions & 1 deletion conf/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ process.enableLastRunOutput=false
process.operation=extract
process.enableExtractStatusOutput=false
process.loadRowToStartAt=0

2 changes: 1 addition & 1 deletion conf/private.key
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<replace with your generated private key>
{�c#�ө����1Y+�
16 changes: 16 additions & 0 deletions data/accountExtract.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"ID","NAME","TYPE","RECORDTYPEID","PARENTID"
"001d000000AMkOOAA1","GenePoint","Customer - Channel","",""
"001d000000AMkOPAA1","United Oil & Gas, UK","Customer - Direct","",""
"001d000000AMkOQAA1","United Oil & Gas, Singapore","Customer - Direct","",""
"001d000000AMkORAA1","Edge Communications","Customer - Direct","",""
"001d000000AMkOSAA1","Burlington Textiles Corp of America","Customer - Direct","",""
"001d000000AMkOTAA1","Pyramid Construction Inc.","Customer - Channel","",""
"001d000000AMkOUAA1","Dickenson plc","Customer - Channel","",""
"001d000000AMkOVAA1","Grand Hotels & Resorts Ltd","Customer - Direct","",""
"001d000000AMkOWAA1","Express Logistics and Transport","Customer - Channel","",""
"001d000000AMkOXAA1","University of Arizona","Customer - Direct","",""
"001d000000AMkOYAA1","United Oil & Gas Corp.","Customer - Direct","",""
"001d000000AMkOZAA1","sForce","","",""
"001d000001m41l4AAA","riccardo.donato","","",""
"001d000000Eap4rAAB","Test_01","","","001d000000AMkOSAA1"
"001d000000Eap5jAAB","Cliente_01","Prospect","","001d000000AMkOSAA1"
Binary file added lib/dataloader-46.0.0-uber.jar
Binary file not shown.