You need to sign in to do that
Don't have an account?
jason.mesick1.3904938006993005E12
Code for Using Apex with Command Prompt
Can anyone help me with the shell code for using ApexDataLoader with the Command Line? The code below I believe is outdated and I don't understand how it works at all. If anyone could send me a sample of what they use with Apex 22.0 it would be much appreciated. Thanks!
"C:\Program Files (x86)\salesforce.com\Apex Data Loader 22.0\ApexDataLoader.exe"
<beans>
<bean id="csvInsertArtist" class="com.salesforce.dataloader.process.ProcessRunner"
singleton="false">
<description>Inserts artist names from CSV file into Artist custom object.</description>
<property name="name" value="csvInsertArtist"/>
<property name="configOverrideMap">
<map>
<entry key="sfdc.debugMessagesFile" value="c:\dataloader\csvInsertArtist.log"/>
<entry key="sfdc.endpoint" value="https://www.salesforce.com"/>
<entry key="sfdc.debugMessages" value="true"/>
<entry key="sfdc.username" value="<i>Jason.Mesick@dignifiedtransitionsolutions.com</i>"/>
<entry key="sfdc.password" value="<i>Jiptastic2</>"/>
<entry key="sfdc.timeoutSecs" value="540"/>
16 <entry key="sfdc.loadBatchSize" value="200"/>
17 <entry key="sfdc.entity" value="Artist__c"/>
18 <entry key="process.operation" value="insert"/>
19 <entry key="process.mappingFile" value="c:\dataloader\artistmap.sdl"/>
20 <entry key="process.outputError" value="c:\dataloader\errorInsertArtist.csv"/>
21 <entry key="process.outputSuccess" value="c:\dataloader\successInsertArtist.csv"/>
22 <entry key="dataAccess.name" value="c:\dataloader\Artists_1_100.csv" />
23 <entry key="dataAccess.type" value="csvRead" />
24 <entry key="process.initialLastRunDate" value="2007-06-06T00:00:00.000-0800"/>
25 </map>
26 </property>
27 </bean>
28 </beans>
"C:\Program Files (x86)\salesforce.com\Apex Data Loader 22.0\ApexDataLoader.exe"
<beans>
<bean id="csvInsertArtist" class="com.salesforce.dataloader.process.ProcessRunner"
singleton="false">
<description>Inserts artist names from CSV file into Artist custom object.</description>
<property name="name" value="csvInsertArtist"/>
<property name="configOverrideMap">
<map>
<entry key="sfdc.debugMessagesFile" value="c:\dataloader\csvInsertArtist.log"/>
<entry key="sfdc.endpoint" value="https://www.salesforce.com"/>
<entry key="sfdc.debugMessages" value="true"/>
<entry key="sfdc.username" value="<i>Jason.Mesick@dignifiedtransitionsolutions.com</i>"/>
<entry key="sfdc.password" value="<i>Jiptastic2</>"/>
<entry key="sfdc.timeoutSecs" value="540"/>
16 <entry key="sfdc.loadBatchSize" value="200"/>
17 <entry key="sfdc.entity" value="Artist__c"/>
18 <entry key="process.operation" value="insert"/>
19 <entry key="process.mappingFile" value="c:\dataloader\artistmap.sdl"/>
20 <entry key="process.outputError" value="c:\dataloader\errorInsertArtist.csv"/>
21 <entry key="process.outputSuccess" value="c:\dataloader\successInsertArtist.csv"/>
22 <entry key="dataAccess.name" value="c:\dataloader\Artists_1_100.csv" />
23 <entry key="dataAccess.type" value="csvRead" />
24 <entry key="process.initialLastRunDate" value="2007-06-06T00:00:00.000-0800"/>
25 </map>
26 </property>
27 </bean>
28 </beans>
Please refer this blog, the code is not version specific. Also would suggest you to try version 24 or 25 of the data loader if it doesn't work out.
http://shivasoft.in/blog/salesforce/tutorial-of-command-line-dataloader-salesforce/
http://help.salesforce.com/apex/HTViewHelpDoc?id=using_the_command_line_interface.htm