binxie
2024-01-20 1d91be0be5220ce19ee64de5a5c9a8237b1c15b1
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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>Cancel_report_deline</fullName>
        <description>询价取消申请驳回通知</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>Manager_sales__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>Sales_assistant__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/Cancel_report_decline</template>
    </alerts>
    <alerts>
        <fullName>Cancel_report_share</fullName>
        <description>询价取消审批共享给助理</description>
        <protected>false</protected>
        <recipients>
            <field>Sales_assistant__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/Cancel_report</template>
    </alerts>
    <alerts>
        <fullName>Cancel_request_approved</fullName>
        <description>取消申请批准</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>Manager_sales__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>Sales_assistant__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/Cancel_report_approval</template>
    </alerts>
    <alerts>
        <fullName>Lost_report_deline</fullName>
        <description>询价失单申请驳回通知</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>Manager_sales__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>Sales_assistant__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/Lost_report_decline</template>
    </alerts>
    <alerts>
        <fullName>Lost_report_share</fullName>
        <description>询价失单审批共享给助理</description>
        <protected>false</protected>
        <recipients>
            <field>Sales_assistant__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/Lost_report</template>
    </alerts>
    <alerts>
        <fullName>Lost_request_approved</fullName>
        <description>失单申请批准</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>Manager_sales__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>Sales_assistant__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/Lost_report_approval</template>
    </alerts>
    <alerts>
        <fullName>partLost_report_deline</fullName>
        <description>询价部分失单申请驳回通知</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>Manager_sales__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>Sales_assistant__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/partLost_report_decline</template>
    </alerts>
    <alerts>
        <fullName>partLost_report_share</fullName>
        <description>询价部分失单审批共享给助理</description>
        <protected>false</protected>
        <recipients>
            <field>Sales_assistant__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/Lostpart_report</template>
    </alerts>
    <alerts>
        <fullName>partLost_request_approved</fullName>
        <description>部分失单申请批准</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>Manager_sales__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>Sales_assistant__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/partLost_report_approval</template>
    </alerts>
    <fieldUpdates>
        <fullName>Change_approved_date</fullName>
        <field>Approved_Day__c</field>
        <formula>today()</formula>
        <name>更新 批准日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Lost_Approved</fullName>
        <field>StageName</field>
        <literalValue>敗戦</literalValue>
        <name>Lost Approved</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
        <targetObject>Opportunity__c</targetObject>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>REChange_approved_date</fullName>
        <field>ModifyAfterApproval_ApprovedDay__c</field>
        <formula>today()</formula>
        <name>更新 再修改批准日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>REinput_submit_date</fullName>
        <field>ModifyAfterApproval_SubmitDay__c</field>
        <formula>today()</formula>
        <name>输入-再修改提交日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>RErequest_date_change_to_blank</fullName>
        <field>ModifyAfterApproval_SubmitDay__c</field>
        <name>再修改提交日为空</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_Opportunity_Stage_Cancel</fullName>
        <field>StageName</field>
        <literalValue>削除</literalValue>
        <name>Set Opportunity.Stage Cancel</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
        <targetObject>Opportunity__c</targetObject>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_status_to_draft</fullName>
        <field>Report_Status__c</field>
        <literalValue>草案</literalValue>
        <name>状态修改到草案中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Status_change_to_approval</fullName>
        <description>状态更新到已批准</description>
        <field>Report_Status__c</field>
        <literalValue>批准</literalValue>
        <name>状态更新到已批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Status_change_to_submit</fullName>
        <field>Report_Status__c</field>
        <literalValue>申请中</literalValue>
        <name>状态-修改到提交</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_ClickCloseDate</fullName>
        <field>Click_Close_Date__c</field>
        <formula>Today()</formula>
        <name>询价-设定询价结束日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
        <targetObject>Opportunity__c</targetObject>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Final_Contract_Proceeded_Date_1</fullName>
        <field>Final_Contract_Proceeded_Date__c</field>
        <formula>Today()</formula>
        <name>SFDC最终处理日更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
        <targetObject>Opportunity__c</targetObject>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Lost_Opportunity_Date</fullName>
        <field>Lost_Opportunity_Date__c</field>
        <formula>today()</formula>
        <name>设定 失单取消日更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
        <targetObject>Opportunity__c</targetObject>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>WF_Test</fullName>
        <field>WF_Test__c</field>
        <formula>Text(Now())</formula>
        <name>WF_Test</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>input_submit_date</fullName>
        <field>Submit_Day__c</field>
        <formula>today()</formula>
        <name>输入-提交日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>request_date_change_to_blank</fullName>
        <field>Submit_Day__c</field>
        <name>申请日修改到空</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>Cancel Approved</fullName>
        <actions>
            <name>Set_Opportunity_Stage_Cancel</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_ClickCloseDate</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Final_Contract_Proceeded_Date_1</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Lost_Opportunity_Date</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>WF_Test</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <criteriaItems>
            <field>Lost_cancel_report__c.Report_Status__c</field>
            <operation>equals</operation>
            <value>批准</value>
        </criteriaItems>
        <criteriaItems>
            <field>Lost_cancel_report__c.RecordTypeId</field>
            <operation>equals</operation>
            <value>询价取消报告</value>
        </criteriaItems>
        <criteriaItems>
            <field>Opportunity.StageName</field>
            <operation>equals</operation>
            <value>引合</value>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>Lost Approved</fullName>
        <actions>
            <name>Lost_Approved</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_ClickCloseDate</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Final_Contract_Proceeded_Date_1</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Lost_Opportunity_Date</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <criteriaItems>
            <field>Lost_cancel_report__c.Report_Status__c</field>
            <operation>equals</operation>
            <value>批准,提交</value>
        </criteriaItems>
        <criteriaItems>
            <field>Lost_cancel_report__c.RecordTypeId</field>
            <operation>equals</operation>
            <value>询价失单报告</value>
        </criteriaItems>
        <criteriaItems>
            <field>Opportunity.StageName</field>
            <operation>equals</operation>
            <value>引合</value>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>