diff --git a/README.md b/README.md index 09d75e5..937bb31 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,9 @@ 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: @@ -20,27 +19,24 @@ The open source version of dataloader is available from: https://github.com/forc ``` $ 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 + $ bin/encrypt.sh -k 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 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 diff --git a/bin/encrypt.sh b/bin/encrypt.sh index e23590d..a9b2478 100755 --- a/bin/encrypt.sh +++ b/bin/encrypt.sh @@ -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 diff --git a/bin/process.sh b/bin/process.sh index d4409b7..9e416ce 100755 --- a/bin/process.sh +++ b/bin/process.sh @@ -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 diff --git a/conf/config.properties b/conf/config.properties index e647a86..a43f66f 100644 --- a/conf/config.properties +++ b/conf/config.properties @@ -40,4 +40,3 @@ process.enableLastRunOutput=false process.operation=extract process.enableExtractStatusOutput=false process.loadRowToStartAt=0 - diff --git a/conf/private.key b/conf/private.key index 884e720..3db9c17 100644 --- a/conf/private.key +++ b/conf/private.key @@ -1 +1 @@ - +{ c#ÒÓ©µÿÈÒ1Y+· \ No newline at end of file diff --git a/data/accountExtract.csv b/data/accountExtract.csv new file mode 100644 index 0000000..5b0b264 --- /dev/null +++ b/data/accountExtract.csv @@ -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" diff --git a/lib/dataloader-46.0.0-uber.jar b/lib/dataloader-46.0.0-uber.jar new file mode 100644 index 0000000..6f9f793 Binary files /dev/null and b/lib/dataloader-46.0.0-uber.jar differ