GWY
2022-05-05 39c03ca1e4f7fa33b3a5a2a089dec11c94c3662f
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>CustomerPassEmail</fullName>
        <description>客户通过邮件</description>
        <protected>false</protected>
        <recipients>
            <field>SubmitUser__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Account/SSBGCustomerPass_New</template>
    </alerts>
    <alerts>
        <fullName>CustomerPassEmailQC</fullName>
        <description>客户通过邮件QC</description>
        <protected>false</protected>
        <recipients>
            <recipient>changyi_li@ssbg.com</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/SSBGCustomerPass_QC</template>
    </alerts>
    <alerts>
        <fullName>CustomerPassEmail_Change</fullName>
        <description>客户通过邮件(修改)</description>
        <protected>false</protected>
        <recipients>
            <field>SubmitUser__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Account/SSBGCustomerPass_New</template>
    </alerts>
    <alerts>
        <fullName>CustomerRejectEmail</fullName>
        <description>客户驳回邮件</description>
        <protected>false</protected>
        <recipients>
            <field>SubmitUser__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Account/SSBGCustomerReject_New</template>
    </alerts>
    <alerts>
        <fullName>CustomerRejectEmailQC</fullName>
        <description>客户驳回邮件QC</description>
        <protected>false</protected>
        <recipients>
            <recipient>changyi_li@ssbg.com</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/SSBGCustomerReject_QC</template>
    </alerts>
    <alerts>
        <fullName>CustomerRejectEmail_Change</fullName>
        <description>客户驳回邮件(修改)</description>
        <protected>false</protected>
        <recipients>
            <field>SubmitUser__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Account/SSBGCustomerReject_New</template>
    </alerts>
    <alerts>
        <fullName>ProhibitionAccount</fullName>
        <ccEmails>xinhonglu@prec-tech.com</ccEmails>
        <description>代理商禁用</description>
        <protected>false</protected>
        <recipients>
            <recipient>bin1_zhao@ssbg.com</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/ProhibitionAccount</template>
    </alerts>
    <fieldUpdates>
        <fullName>ANI_RECORDTYPE_Change</fullName>
        <field>RecordTypeId</field>
        <lookupValue>Customer_ANI_Approval</lookupValue>
        <lookupValueType>RecordType</lookupValueType>
        <name>ANI_RECORDTYPE_Change</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>LookupValue</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ANI_RECORDTYPE_Return</fullName>
        <field>RecordTypeId</field>
        <lookupValue>Customer_ANI</lookupValue>
        <lookupValueType>RecordType</lookupValueType>
        <name>ANI_RECORDTYPE_Return</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>LookupValue</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>AreaForIEApprove</fullName>
        <field>AreaForIEApproveText__c</field>
        <formula>AreaForIEApprove__c</formula>
        <name>地区(IE审批)</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>BS_RECORDTYPE_Change</fullName>
        <field>RecordTypeId</field>
        <lookupValue>Customer_BS_Approval</lookupValue>
        <lookupValueType>RecordType</lookupValueType>
        <name>BS_RECORDTYPE_Change</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>LookupValue</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>BS_RECORDTYPE_Return</fullName>
        <field>RecordTypeId</field>
        <lookupValue>Customer_BS</lookupValue>
        <lookupValueType>RecordType</lookupValueType>
        <name>BS_RECORDTYPE_Return</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>LookupValue</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>CustomerApprove</fullName>
        <field>stautesD__c</field>
        <literalValue>Pass</literalValue>
        <name>更新客户状态-批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>CustomerChange</fullName>
        <field>stautesD__c</field>
        <literalValue>Submit</literalValue>
        <name>更新客户状态-已提交</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>CustomerInitial</fullName>
        <field>stautesD__c</field>
        <literalValue>Draft</literalValue>
        <name>更新客户状态-草案中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>CustomerReject</fullName>
        <field>stautesD__c</field>
        <literalValue>Reject</literalValue>
        <name>更新客户状态-驳回</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>FiledsUpdate</fullName>
        <field>stautesD__c</field>
        <literalValue>Pass</literalValue>
        <name>审批状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>IE_RECORDTYPE_Change</fullName>
        <field>RecordTypeId</field>
        <lookupValue>Customer_IE_Approval</lookupValue>
        <lookupValueType>RecordType</lookupValueType>
        <name>IE_RECORDTYPE_Change</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>LookupValue</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>IE_RECORDTYPE_Return</fullName>
        <field>RecordTypeId</field>
        <lookupValue>Customer_IE</lookupValue>
        <lookupValueType>RecordType</lookupValueType>
        <name>IE_RECORDTYPE_Return</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>LookupValue</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>NDT_RECORDTYPE_Change</fullName>
        <field>RecordTypeId</field>
        <lookupValue>Customer_NDT_Approval</lookupValue>
        <lookupValueType>RecordType</lookupValueType>
        <name>NDT_RECORDTYPE_Change</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>LookupValue</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>NDT_RECORDTYPE_Return</fullName>
        <field>RecordTypeId</field>
        <lookupValue>Customer_NDT</lookupValue>
        <lookupValueType>RecordType</lookupValueType>
        <name>NDT_RECORDTYPE_Return</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>LookupValue</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ProvinceStr</fullName>
        <field>ProvinceStr__c</field>
        <formula>TEXT( Province__c )</formula>
        <name>省份文本赋值</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>RVI_RECORDTYPE_Change</fullName>
        <field>RecordTypeId</field>
        <lookupValue>Customer_RVI_Approval</lookupValue>
        <lookupValueType>RecordType</lookupValueType>
        <name>RVI_RECORDTYPE_Change</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>LookupValue</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>RVI_RECORDTYPE_Return</fullName>
        <field>RecordTypeId</field>
        <lookupValue>Customer_RVI</lookupValue>
        <lookupValueType>RecordType</lookupValueType>
        <name>RVI_RECORDTYPE_Return</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>LookupValue</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>TechnicalServiceCreated</fullName>
        <field>TechnicalServiceCreated__c</field>
        <literalValue>1</literalValue>
        <name>技术服务部创建</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>accountpass</fullName>
        <field>stautesD__c</field>
        <literalValue>Pass</literalValue>
        <name>客户批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>create_true</fullName>
        <field>MarketingStrategyCreated__c</field>
        <literalValue>1</literalValue>
        <name>市场战略部创建-真</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>isServiceCreate</fullName>
        <field>serviceCreate__c</field>
        <literalValue>1</literalValue>
        <name>是否服务部创建</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>setIs_New</fullName>
        <field>IsNew__c</field>
        <literalValue>0</literalValue>
        <name>setIs_New</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>updateAccountName</fullName>
        <field>Name</field>
        <formula>IF(FacilityName__c &lt;&gt; &apos;&apos;,FacilityName__c &amp; IF(DivisionName__c=&apos;无&apos;,&apos;&apos;,DivisionName__c) 
&amp; IF(OR(DepartmentName__c=&apos;无&apos;, IsBlank(DepartmentName__c)),&apos;&apos;, 
&apos; &apos; &amp; DepartmentName__c 
),FacilityNameD__c &amp; IF(DivisionName_D__c=&apos;无&apos;,&apos;&apos;,DivisionName_D__c) 
&amp; IF(OR(DepartmentNameD__c=&apos;无&apos;, IsBlank(DepartmentNameD__c)),&apos;&apos;, 
&apos; &apos; &amp; DepartmentNameD__c))</formula>
        <name>updateAccountName</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <rules>
        <fullName>SetAccountName</fullName>
        <actions>
            <name>updateAccountName</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>RecordTypeId &lt;&gt; &apos;0120K000000Opa6&apos; &amp;&amp; RecordTypeId &lt;&gt; &apos;012280000005gnE&apos; &amp;&amp; RecordTypeId &lt;&gt; &apos;01228000000TF3Q&apos; &amp;&amp; RecordTypeId &lt;&gt; &apos;01228000000TGun&apos; &amp;&amp;(ISNEW()  || ISCHANGED(FacilityName__c)  || ISCHANGED(DivisionName__c)  || ISCHANGED(DepartmentName__c)  || ISCHANGED(Name) )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>代理商禁用邮件通知01</fullName>
        <actions>
            <name>ProhibitionAccount</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND(ProhibitionAccount__c, ISCHANGED(ProhibitionAccount__c),  ISBLANK(ParentId))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>地区%28IE审批%29</fullName>
        <actions>
            <name>AreaForIEApprove</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>市场战略部创建</fullName>
        <actions>
            <name>create_true</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>$Profile.Id = &apos;00e28000000YQMs&apos; || $Profile.Id = &apos;00e0K000002NxHr&apos;</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>市场战略部创建_NEW</fullName>
        <actions>
            <name>create_true</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>CONTAINS($Label.MarketingDepartment,LEFT($User.Id,15))</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>市场部创建客户</fullName>
        <actions>
            <name>accountpass</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>setIs_New</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>$Profile.Id = &apos;00e28000000YQMs&apos; || $Profile.Id = &apos;00e0K000002NxHr&apos;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>市场部创建客户_NEW</fullName>
        <actions>
            <name>accountpass</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>setIs_New</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>CONTAINS($Label.MarketingDepartment,LEFT($User.Id,15))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>技术服务部创建客户标记</fullName>
        <actions>
            <name>TechnicalServiceCreated</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>OR($Profile.Id = &apos;00e28000001sZE6&apos;,$Profile.Id = &apos;00e28000000YQMx&apos;, CreatedBy.Id = &apos;00528000000YWE7&apos;, CreatedBy.Id =&apos;00528000000YVGg&apos;, CreatedBy.Id = &apos;0050K000009U4II&apos;, CreatedBy.Id = &apos;0050K000009U4ID&apos;, CreatedBy.Id = &apos;00528000000YWC6&apos;)</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>技术服务部创建客户标记_NEW</fullName>
        <actions>
            <name>TechnicalServiceCreated</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>OR(CONTAINS($Label.TechnicalService,LEFT($User.Id,15)) , CreatedBy.Id = &apos;00528000000YWE7&apos;, CreatedBy.Id =&apos;00528000000YVGg&apos;, CreatedBy.Id = &apos;0050K000009U4II&apos;, CreatedBy.Id = &apos;0050K000009U4ID&apos;, CreatedBy.Id = &apos;00528000000YWC6&apos;)</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>是否服务部创建</fullName>
        <actions>
            <name>isServiceCreate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>OR(CreatedById = &apos;00528000000YWC6&apos;,CreatedById = &apos;00528000000YWE7&apos;, $Profile.Id = &apos;00e28000000YQMx&apos;, $Profile.Id = &apos;00e28000001sZE6&apos;)</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>是否服务部创建_NEW</fullName>
        <actions>
            <name>isServiceCreate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>OR(CreatedById = &apos;00528000000YWC6&apos;,CreatedById = &apos;00528000000YWE7&apos;, CONTAINS($Label.TechnicalService,LEFT($User.Id,15)))</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>服务部创建客户BS%2FNDT%2FANI不需要审批</fullName>
        <actions>
            <name>FiledsUpdate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>服务部创建客户BS/NDT/ANI不需要审批</description>
        <formula>AND(serviceCreate__c = true,OR(text(ProductSegment__c) = &apos;BS&apos;,text(ProductSegment__c) = &apos;NDT&apos;,text(ProductSegment__c) = &apos;ANI&apos;))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>省份文本赋值</fullName>
        <actions>
            <name>ProvinceStr</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Account.Province__c</field>
            <operation>equals</operation>
            <value>内蒙古,河北,山西,山东,北京,天津,上海,江苏,浙江,安徽,江西,新疆,西藏,青海,甘肃,宁夏,陕西,云南,贵州,重庆,四川,河南,湖北,湖南,广东,广西,福建,海南,辽宁,吉林,黑龙江</value>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>