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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>CreateSIMail</fullName>
        <ccEmails>IT_SFDC@olympus.com.cn</ccEmails>
        <description>新建需求表邮件提醒</description>
        <protected>false</protected>
        <recipients>
            <type>creator</type>
        </recipients>
        <recipients>
            <recipient>tongyun_pan@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <recipients>
            <field>Opportunity_sub_owner__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/SI_CreateMailModel</template>
    </alerts>
    <alerts>
        <fullName>SICommonDeniedMail</fullName>
        <ccEmails>si_yingye@olympus.com.cn</ccEmails>
        <description>通行SI需求表审批-审批驳回邮件</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>Opportunity_sub_owner__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_Majordomo__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_Minister_Sell__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/SICommonDeniedMailModel</template>
    </alerts>
    <alerts>
        <fullName>SICommonPassMail</fullName>
        <ccEmails>si_yingye@olympus.com.cn</ccEmails>
        <description>通行SI需求表审批-审批通过邮件</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>Opportunity_sub_owner__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_Majordomo__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_Minister_Sell__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/SIPassMailModel</template>
    </alerts>
    <alerts>
        <fullName>SI_Abort_Send_Mail</fullName>
        <ccEmails>SI_yingye@olympus.com.cn</ccEmails>
        <description>SI需求表终止邮件提醒</description>
        <protected>false</protected>
        <recipients>
            <type>creator</type>
        </recipients>
        <recipients>
            <recipient>tongyun_pan@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <recipients>
            <field>Opportunity_sub_owner__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_Majordomo__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_Minister_Sell__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_SalesManager__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/SI_Abort_Mail_Model</template>
    </alerts>
    <alerts>
        <fullName>SI_Common_Stream</fullName>
        <ccEmails>si_yingye@olympus.com.cn</ccEmails>
        <description>通行SI需求表审批流程</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>Opportunity_sub_owner__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_Majordomo__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_Minister_Sell__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/SI_ISO_Submit_Mail</template>
    </alerts>
    <alerts>
        <fullName>SI_Oppor_Submit_Mail</fullName>
        <description>SI询价需求提交待审批邮件</description>
        <protected>false</protected>
        <recipients>
            <type>creator</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/SI_ISO_Submit_Mail</template>
    </alerts>
    <alerts>
        <fullName>SI_SOD_Submit_Mail</fullName>
        <ccEmails>si_yingye@olympus.com.cn</ccEmails>
        <description>SI需求表提交申请</description>
        <protected>false</protected>
        <recipients>
            <field>Opportunity_sub_owner__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_SalesManager__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/SI_Submit_Mail</template>
    </alerts>
    <alerts>
        <fullName>SI_SOD_Submited</fullName>
        <ccEmails>si_yingye@olympus.com.cn</ccEmails>
        <description>SI需求表已提交</description>
        <protected>false</protected>
        <recipients>
            <type>creator</type>
        </recipients>
        <recipients>
            <field>Opportunity_sub_owner__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_Majordomo__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_Minister_Sell__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>SI_SalesManager__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/SI_ISO_Submit_Mail</template>
    </alerts>
    <alerts>
        <fullName>SI_Wait_For_Approval</fullName>
        <description>SI询价提交待审批</description>
        <protected>false</protected>
        <recipients>
            <type>creator</type>
        </recipients>
        <recipients>
            <recipient>uat_02@uat.olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/SI_Oppor_Submit_Mail</template>
    </alerts>
    <alerts>
        <fullName>approval_Aloud_Mail</fullName>
        <ccEmails>si_yingye@olympus.com.cn</ccEmails>
        <description>SI审批通过邮件</description>
        <protected>false</protected>
        <recipients>
            <type>creator</type>
        </recipients>
        <recipients>
            <field>Opportunity_sub_owner__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Prospect/SI_Oppor_Stream_Mail</template>
    </alerts>
    <fieldUpdates>
        <fullName>RequiredName</fullName>
        <field>Name</field>
        <formula>Opportunity_ID__r.Opportunity_No__c+&apos;-&apos;+ IF(Name_Index__c&gt;9,Text(Name_Index__c),&apos;0&apos;+Text(Name_Index__c))</formula>
        <name>创建需求名称</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SI_Approval_Set_Date</fullName>
        <field>Approval_Date__c</field>
        <formula>Today()</formula>
        <name>SI批准添加日期</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SetApplyDate</fullName>
        <field>Equipment_Confirm_Date__c</field>
        <formula>today()</formula>
        <name>设置申请日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SetStockConfrimDate</fullName>
        <field>Stock_Comfirm_Date__c</field>
        <formula>today()</formula>
        <name>备货申请确认日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_CallBack</fullName>
        <field>Submint_TF__c</field>
        <literalValue>0</literalValue>
        <name>调回提交</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_Date</fullName>
        <field>Submit_Date__c</field>
        <formula>Today()</formula>
        <name>提交时间</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_For_Confirm</fullName>
        <field>Submint_TF__c</field>
        <literalValue>1</literalValue>
        <name>需求表提交</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_Pass</fullName>
        <field>Approval_Date__c</field>
        <formula>today()</formula>
        <name>审批通过</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_Refuse</fullName>
        <field>Submint_TF__c</field>
        <literalValue>0</literalValue>
        <name>驳回提交</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>reSetSubmitDate</fullName>
        <field>Submit_Date__c</field>
        <name>重置提交日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>SI_Abort_Mail</fullName>
        <actions>
            <name>SI_Abort_Send_Mail</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>Not(ISBLANK(Abort_SI_Reason__c))&amp;&amp;Not(ISNULL(Abort_SI_Reason__c))&amp;&amp;not(isNull( Abort_Date__c ))</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>SI询价提交待审批</fullName>
        <actions>
            <name>SI_Oppor_Submit_Mail</name>
            <type>Alert</type>
        </actions>
        <active>false</active>
        <criteriaItems>
            <field>IS_Opportunity_Demand__c.Submint_TF__c</field>
            <operation>equals</operation>
            <value>真</value>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>新建SI需求名</fullName>
        <actions>
            <name>CreateSIMail</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>RequiredName</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>isnew()</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>