binxie
2024-01-20 2ff0f0a7ab276c3466d9e06e14222db802194efc
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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>QIS3_Updated</fullName>
        <ccEmails>OCM-Service-manager@olympus.com.cn</ccEmails>
        <ccEmails>OCM-Service-member@olympus.com.cn</ccEmails>
        <ccEmails>OSH-PB-manager@olympus.com.cn</ccEmails>
        <ccEmails>OSH-PB-member@olympus.com.cn</ccEmails>
        <description>6.QIS3更新时</description>
        <protected>false</protected>
        <recipients>
            <field>OCM_Manager_Mail__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <field>OCM_Member_Mail__c</field>
            <type>email</type>
        </recipients>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>QIS/QISMBC_Updated_html</template>
    </alerts>
    <fieldUpdates>
        <fullName>NAME_update</fullName>
        <field>Name</field>
        <formula>&quot;OSH-&quot; &amp; text(M_BC__c) &amp; &quot;-&quot; &amp; OCM_period_New__c &amp; &quot;-&quot; &amp; QIS_no__c</formula>
        <name>NAME更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OCM_management_code_copy</fullName>
        <field>QIS_M_BC_management_code__c</field>
        <formula>&quot;OSH-&quot; &amp; text(M_BC__c) &amp; &quot;-&quot; &amp; OCM_period_New__c &amp; &quot;-&quot; &amp; QIS_no__c</formula>
        <name>OCM管理号码设定.</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_QIS_M_BC_answer_day</fullName>
        <field>QIS_M_BC_answer_day__c</field>
        <formula>today()</formula>
        <name>更新QIS M-BC回答日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_answer_day</fullName>
        <field>QIS_M_BC_answer_day__c</field>
        <formula>Today()</formula>
        <name>更新QIS M-BC回答日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>QIS M-BC管理号码设定</fullName>
        <actions>
            <name>NAME_update</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>OCM_management_code_copy</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <booleanFilter>1 OR 2</booleanFilter>
        <criteriaItems>
            <field>QIS_M_BC__c.Name</field>
            <operation>equals</operation>
            <value>*</value>
        </criteriaItems>
        <criteriaItems>
            <field>QIS_M_BC__c.QIS_M_BC_management_code__c</field>
            <operation>equals</operation>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>QIS3更新时</fullName>
        <actions>
            <name>QIS3_Updated</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>(ISNEW() || ISCHANGED(QIS_M_BC_answer_detail__c)) &amp;&amp; QIS_M_BC_answer_detail__c != null</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>QIS3更新时%EF%BC%88华东%EF%BC%89</fullName>
        <active>false</active>
        <formula>(ISNEW() || ISCHANGED(QIS_M_BC_answer_detail__c)) &amp;&amp; QIS_M_BC_answer_detail__c != null &amp;&amp; QIS_request_name__r.Owner:User.Salesdepartment__c = &quot;5.华东&quot;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>QIS3更新时%EF%BC%88华北%2F西北%EF%BC%89</fullName>
        <active>false</active>
        <formula>(ISNEW() || ISCHANGED(QIS_M_BC_answer_detail__c)) &amp;&amp; QIS_M_BC_answer_detail__c != null &amp;&amp; (QIS_request_name__r.Owner:User.Salesdepartment__c = &quot;1.华北&quot; || QIS_request_name__r.Owner:User.Salesdepartment__c = &quot;3.西北&quot;)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>QIS3更新时%EF%BC%88华南%2F西南%EF%BC%89</fullName>
        <active>false</active>
        <formula>(ISNEW() || ISCHANGED(QIS_M_BC_answer_detail__c)) &amp;&amp; QIS_M_BC_answer_detail__c != null &amp;&amp; (QIS_request_name__r.Owner:User.Salesdepartment__c = &quot;6.华南部&quot; || QIS_request_name__r.Owner:User.Salesdepartment__c = &quot;4.西南&quot;)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>delete QIS3更新时%EF%BC%88华东%EF%BC%89</fullName>
        <active>false</active>
        <formula>(ISNEW() || ISCHANGED(QIS_M_BC_answer_detail__c)) &amp;&amp; QIS_M_BC_answer_detail__c != null &amp;&amp; QIS_request_name__r.Owner:User.Salesdepartment__c = &quot;5.华东&quot;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>delete QIS3更新时%EF%BC%88华北%2F西北%EF%BC%89</fullName>
        <active>false</active>
        <formula>(ISNEW() || ISCHANGED(QIS_M_BC_answer_detail__c)) &amp;&amp; QIS_M_BC_answer_detail__c != null &amp;&amp; (QIS_request_name__r.Owner:User.Salesdepartment__c = &quot;1.华北&quot; || QIS_request_name__r.Owner:User.Salesdepartment__c = &quot;3.西北&quot;)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>delete QIS3更新时%EF%BC%88华南%2F西南%EF%BC%89</fullName>
        <active>false</active>
        <formula>(ISNEW() || ISCHANGED(QIS_M_BC_answer_detail__c)) &amp;&amp; QIS_M_BC_answer_detail__c != null &amp;&amp; (QIS_request_name__r.Owner:User.Salesdepartment__c = &quot;6.华南&quot; || QIS_request_name__r.Owner:User.Salesdepartment__c = &quot;4.西南&quot;)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>delete 自动更新-QIS M-BC回答日</fullName>
        <actions>
            <name>Update_answer_day</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>ISCHANGED(QIS_M_BC_answer_detail__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>自动更新-QIS M-BC回答日</fullName>
        <actions>
            <name>Update_answer_day</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>ISCHANGED(QIS_M_BC_answer_detail__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>