binxie
2024-01-22 102afa21c115e8c8b9333a326c3d1af08fe76faf
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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>NewAgencyOpportunityEmail</fullName>
        <description>特约店新建经销商询价后,对应医院科室的OCSM营业担当收到提醒邮件</description>
        <protected>false</protected>
        <recipients>
            <field>OCSM_Owner__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NewAgencyOpportunityEmail</template>
    </alerts>
    <alerts>
        <fullName>NewNewOpportunity_Agency_Reject_email</fullName>
        <ccEmails>liyanf@sohobb.jp</ccEmails>
        <ccEmails>maoyudi@sohobb.jp</ccEmails>
        <ccEmails>it_sfdc@olympus.com.cn</ccEmails>
        <description>共享给经销商-驳回邮件</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Agency_Opportunity/ShareNotApproved</template>
    </alerts>
    <alerts>
        <fullName>NewOpportunity_Agency_Approve_email</fullName>
        <description>共享给经销商-批准邮件</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Agency_Opportunity/ShareApproved</template>
    </alerts>
    <alerts>
        <fullName>NewOpportunity_Agency_apply_email</fullName>
        <ccEmails>liyanf@sohobb.jp</ccEmails>
        <ccEmails>maoyudi@sohobb.jp</ccEmails>
        <description>共享给经销商-通知邮件</description>
        <protected>false</protected>
        <recipients>
            <field>Sales_Manager__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Agency_Opportunity/ShareInform</template>
    </alerts>
    <fieldUpdates>
        <fullName>Agency_Opportunity_No_Setting</fullName>
        <field>Agency_Opportunity_No__c</field>
        <formula>IF(Isnull(Created_Day__c) == False,
if((YEAR(Created_Day__c)&lt;=2021 &amp;&amp; MONTH(Created_Day__c)&lt;=3),
    TEXT(YEAR(Created_Day__c)-1868)+&apos;P_&apos;,
    if((YEAR(Created_Day__c)&lt;2021 &amp;&amp; MONTH(Created_Day__c)&gt;3),TEXT(YEAR(Created_Day__c)-1867)+&apos;P_&apos;,
        if((YEAR(Created_Day__c)&gt;=2021&amp;&amp;MONTH(Created_Day__c)&gt;3),&apos;FY&apos;&amp;TEXT(YEAR(Created_Day__c)+1)+&apos;-&apos;,
           &apos;FY&apos;&amp;TEXT(YEAR(Created_Day__c))+&apos;-&apos;
)
)
),&quot;&quot;
)+ Right(LPAD(AutoNumber__c, 8, &apos;0&apos;), 8)</formula>
        <name>经销商询价编码设置</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Deleted_Reason_Date_Setting</fullName>
        <field>Deleted_Reason_Date__c</field>
        <formula>Today()</formula>
        <name>取消日期设定</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Lost_Opportunity_Date_Setting</fullName>
        <field>Lost_Opportunity_Date__c</field>
        <formula>Today()</formula>
        <name>失单日期设定</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>NewOpportunity_Agenc_Apply_Status_submit</fullName>
        <field>NewOpportunity_Agency_Apply_Status__c</field>
        <literalValue>申请中</literalValue>
        <name>共享审批状态-申请中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>NewOpportunity_Agency_Apply_Status_draft</fullName>
        <field>NewOpportunity_Agency_Apply_Status__c</field>
        <literalValue>草案中</literalValue>
        <name>共享审批状态-草案中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>NewOpportunity_Agency_Apply_Status_pass</fullName>
        <field>NewOpportunity_Agency_Apply_Status__c</field>
        <literalValue>批准</literalValue>
        <name>共享审批状态-批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>NewOpportunity_Agency_Apply_Status_rejec</fullName>
        <field>NewOpportunity_Agency_Apply_Status__c</field>
        <literalValue>不批准</literalValue>
        <name>共享审批状态-不批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>NewOpportunity_Agency_Apply_Time_update</fullName>
        <field>NewOpportunity_Agency_Apply_time__c</field>
        <formula>NOW()</formula>
        <name>共享申请时间-更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>NewOpportunity_Agency_Apply_ptime_clear</fullName>
        <field>NewOpportunity_Agency_Apply_passtime__c</field>
        <name>共享审批通过时间-清空</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>NewOpportunity_Agency_Apply_ptime_update</fullName>
        <field>NewOpportunity_Agency_Apply_passtime__c</field>
        <formula>NOW()</formula>
        <name>共享审批通过时间-更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateSF</fullName>
        <field>Test_SF_support__c</field>
        <formula>hosName_opp__c</formula>
        <name>更新医院名</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>公式拷文本%28医院名%29</fullName>
        <actions>
            <name>UpdateSF</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>公式拷文本%28社区搜索用%29</fullName>
        <actions>
            <name>UpdateSF</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>ISCHANGED(Account_Opp__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>取消日期</fullName>
        <actions>
            <name>Deleted_Reason_Date_Setting</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Agency_Opportunity__c.StageName__c</field>
            <operation>equals</operation>
            <value>取消</value>
        </criteriaItems>
        <description>当状态为‘取消’,取消日期设置成今天</description>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>失单日期</fullName>
        <actions>
            <name>Lost_Opportunity_Date_Setting</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Agency_Opportunity__c.StageName__c</field>
            <operation>equals</operation>
            <value>失单</value>
        </criteriaItems>
        <description>当状态为‘失单’,失单日期设置成今天</description>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>新建经销商询价后邮件提醒营业担当</fullName>
        <actions>
            <name>NewAgencyOpportunityEmail</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <description>新建经销商询价后邮件提醒营业担当</description>
        <formula>true</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>经销商询价编码设值</fullName>
        <actions>
            <name>Agency_Opportunity_No_Setting</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Agency_Opportunity__c.AutoNumber__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
</Workflow>