-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocess-conf.xml
79 lines (79 loc) · 4.58 KB
/
process-conf.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="ContactUpsert"
class="com.salesforce.dataloader.process.ProcessRunner"
singleton="false">
<description>AccountUpsert job gets the account record from the CSV file and inserts it into Salesforce.</description>
<property name="name" value="ContactUpsert"/>
<property name="configOverrideMap">
<map>
<entry key="sfdc.useBulkApi" value="true"/>
<entry key="sfdc.debugMessages"
value="true"/>
<entry key="sfdc.endpoint"
value="https://your_instans_name.salesforce.com"/><!-- csxx or APx-->
<entry key="sfdc.username"
value="[email protected]"/>
<entry key="sfdc.password"
value="your_secret_key_encrypt_with_your_pass_word"/>
<entry key="process.encryptionKeyFile"
value="F:\key.txt"/><!-- your secret key file path -->
<entry key="sfdc.timeoutSecs"
value="600"/>
<entry key="sfdc.loadBatchSize"
value="200"/>
<entry key="sfdc.entity"
value="Contact"/><!-- you want to upsert object API name -->
<entry key="process.operation"
value="upsert"/><!-- Upsert operation set -->
<entry key="sfdc.externalIdField" value="ConNo__c"/><!-- set Contact or other object Foreign Key Field API Name -->
<entry key="process.mappingFile"
value="F:\contact_mappingfile_sample.sdl"/><!-- set you set mapping file path -->
<entry key="dataAccess.name"
value="F:\contact_data_.tsv"/><!-- you prepared tsv file for csv file path -->
<entry key="process.outputSuccess"
value="F:\logs\Contact_success.csv"/><!-- set you want to save success csv file out put path in your PC-->
<entry key="process.outputError"
value="F:\Contact_error.csv"/><!-- set you want to save error csv file out put path in your PC-->
<entry key="dataAccess.type"
value="csvRead"/>
<entry key="process.initialLastRunDate"
value="2005-12-01T00:00:00.000-0800"/>
</map>
</property>
</bean>
<bean id="accountExtract"
class="com.salesforce.dataloader.process.ProcessRunner"
singleton="false">
<description>csvAccountExtract job gets account info from salesforce and saves info a CSV file."</description>
<property name="name" value="accountExtract"/>
<property name="configOverrideMap">
<map>
<entry key="sfdc.entity" value="Account"/>
<entry key="sfdc.extractionRequestSize" value="500"/>
<entry key="sfdc.extractionSOQL" value="Select Id, Name FROM Account Where RecordType.DeveloperName = 'Kokyaku'/>
<entry key="process.operation" value="extract"/>
<entry key="dataAccess.type" value="csvWrite"/>
<entry key="dataAccess.name" value="F:\Account_output_file.csv"/><!-- set you save extract account csv file out put path in your PC-->
</map>
</property>
</bean>
<bean id="accountUpdate"
class="com.salesforce.dataloader.process.ProcessRunner"
singleton="false">
<description>Update Account job gets account info from salesforce and saves info a CSV file."</description>
<property name="name" value="accountUpdate"/>
<property name="configOverrideMap">
<map>
<entry key="sfdc.entity" value="Account"/>
<entry key="process.operation" value="update"/>
<entry key="process.mappingFile" value="F:\sdl\accountUpdateMap.sdl"/><!-- set your PC path :mapping sdl file-->
<entry key="dataAccess.writeUTF8" value="true"/>
<entry key="process.outputError" value="F:\log\Account_yyyymmdd_err.csv"/><!--set yourself path in your PC-->
<entry key="process.outputSuccess" value="F:\logs\Account_yyyymmdd.csv"/><!--set yourself path in your PC-->
<entry key="dataAccess.type" value="csvRead"/>
<entry key="dataAccess.name" value="F:\Account_Data_file.csv"/><!--set yourself path in your PC-->
</map>
</property>
</bean>
</beans>