binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
force-app/main/default/workflows/Account.workflow-meta.xml
@@ -88,9 +88,9 @@
    </alerts>
    <alerts>
        <fullName>Approach_Confirm</fullName>
        <ccEmails>wei_yin@olympus.com.cn.invalid</ccEmails>
        <ccEmails>dongfeng_li@olympus.com.cn.invalid</ccEmails>
        <ccEmails>xiaochang_yu@olympus.com.cn.invalid</ccEmails>
        <ccEmails>wei_yin@olympus.com.cn</ccEmails>
        <ccEmails>dongfeng_li@olympus.com.cn</ccEmails>
        <ccEmails>xiaochang_yu@olympus.com.cn</ccEmails>
        <description>审批通过</description>
        <protected>false</protected>
        <recipients>
@@ -883,7 +883,11 @@
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>AND( Submit_Customer_target__c = TRUE, Plan_approved__c = TRUE, NOT(ISBLANK(Review_FSE__c)), ISCHANGED(FSEManager_feedback_check_FSE__c))</formula>
        <formula>AND(
Submit_Customer_target__c = TRUE,
Plan_approved__c = TRUE,
NOT(ISBLANK(Review_FSE__c)),
ISCHANGED(FSEManager_feedback_check_FSE__c))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -901,7 +905,13 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND( Submit_Customer_target_FSE__c = true, Plan_approved_FSE__c = true, NOT(ISBLANK(Review_FSE__c)),  NOT(ISBLANK(FSEManager_feedback_check_FSE__c)), ISCHANGED(FSEManager_feedback_check_FSE__c), OR(month(today())=4,month(today())=5,month(today())=6))</formula>
        <formula>AND(
Submit_Customer_target_FSE__c = true,
Plan_approved_FSE__c = true,
NOT(ISBLANK(Review_FSE__c)),
NOT(ISBLANK(FSEManager_feedback_check_FSE__c)),
ISCHANGED(FSEManager_feedback_check_FSE__c),
OR(month(today())=4,month(today())=5,month(today())=6))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -919,7 +929,13 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND( Submit_Customer_target_FSE__c = true, Plan_approved_FSE__c = true, NOT(ISBLANK(Review_FSE__c)),  NOT(ISBLANK(FSEManager_feedback_check_FSE__c)), ISCHANGED(FSEManager_feedback_check_FSE__c), OR(month(today())=7,month(today())=8,month(today())=9))</formula>
        <formula>AND(
Submit_Customer_target_FSE__c = true,
Plan_approved_FSE__c = true,
NOT(ISBLANK(Review_FSE__c)),
NOT(ISBLANK(FSEManager_feedback_check_FSE__c)),
ISCHANGED(FSEManager_feedback_check_FSE__c),
OR(month(today())=7,month(today())=8,month(today())=9))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -937,7 +953,13 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND( Submit_Customer_target_FSE__c = true, Plan_approved_FSE__c = true, NOT(ISBLANK(Review_FSE__c)),  NOT(ISBLANK(FSEManager_feedback_check_FSE__c)), ISCHANGED(FSEManager_feedback_check_FSE__c), OR(month(today())=10,month(today())=11,month(today())=12))</formula>
        <formula>AND(
Submit_Customer_target_FSE__c = true,
Plan_approved_FSE__c = true,
NOT(ISBLANK(Review_FSE__c)),
NOT(ISBLANK(FSEManager_feedback_check_FSE__c)),
ISCHANGED(FSEManager_feedback_check_FSE__c),
OR(month(today())=10,month(today())=11,month(today())=12))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -955,7 +977,13 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND( Submit_Customer_target_FSE__c = true, Plan_approved_FSE__c = true, NOT(ISBLANK(Review_FSE__c)),  NOT(ISBLANK(FSEManager_feedback_check_FSE__c)), ISCHANGED(FSEManager_feedback_check_FSE__c), OR(month(today())=1,month(today())=2,month(today())=3))</formula>
        <formula>AND(
Submit_Customer_target_FSE__c = true,
Plan_approved_FSE__c = true,
NOT(ISBLANK(Review_FSE__c)),
NOT(ISBLANK(FSEManager_feedback_check_FSE__c)),
ISCHANGED(FSEManager_feedback_check_FSE__c),
OR(month(today())=1,month(today())=2,month(today())=3))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -972,12 +1000,12 @@
        <criteriaItems>
            <field>Account.Submit_Customer_target_FSE__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Account.Plan_approved_FSE__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Account.FSE_activity_target_Plan_check_day__c</field>
@@ -1011,7 +1039,8 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(ISCHANGED(Review_FSE__c),    OR(text(month(today()))=&quot;4&quot;,text(month(today()))=&quot;5&quot;,text(month(today()))=&quot;6&quot;))</formula>
        <formula>AND(ISCHANGED(Review_FSE__c),
   OR(text(month(today()))=&quot;4&quot;,text(month(today()))=&quot;5&quot;,text(month(today()))=&quot;6&quot;))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1025,7 +1054,8 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(ISCHANGED(Review_Sales__c),    OR(text(month(today()))=&quot;4&quot;,text(month(today()))=&quot;5&quot;,text(month(today()))=&quot;6&quot;))</formula>
        <formula>AND(ISCHANGED(Review_Sales__c),
   OR(text(month(today()))=&quot;4&quot;,text(month(today()))=&quot;5&quot;,text(month(today()))=&quot;6&quot;))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1039,7 +1069,8 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(ISCHANGED(Review_FSE__c),  OR(text(month(today()))=&quot;7&quot;,text(month(today()))=&quot;8&quot;,text(month(today()))=&quot;9&quot;))</formula>
        <formula>AND(ISCHANGED(Review_FSE__c),
OR(text(month(today()))=&quot;7&quot;,text(month(today()))=&quot;8&quot;,text(month(today()))=&quot;9&quot;))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1053,7 +1084,8 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(ISCHANGED(Review_Sales__c),  OR(text(month(today()))=&quot;7&quot;,text(month(today()))=&quot;8&quot;,text(month(today()))=&quot;9&quot;))</formula>
        <formula>AND(ISCHANGED(Review_Sales__c),
OR(text(month(today()))=&quot;7&quot;,text(month(today()))=&quot;8&quot;,text(month(today()))=&quot;9&quot;))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1067,7 +1099,8 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(ISCHANGED(Review_FSE__c),  OR(text(month(today()))=&quot;10&quot;,text(month(today()))=&quot;11&quot;,text(month(today()))=&quot;12&quot;))</formula>
        <formula>AND(ISCHANGED(Review_FSE__c),
OR(text(month(today()))=&quot;10&quot;,text(month(today()))=&quot;11&quot;,text(month(today()))=&quot;12&quot;))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1081,7 +1114,8 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(ISCHANGED(Review_Sales__c),  OR(text(month(today()))=&quot;10&quot;,text(month(today()))=&quot;11&quot;,text(month(today()))=&quot;12&quot;))</formula>
        <formula>AND(ISCHANGED(Review_Sales__c),
OR(text(month(today()))=&quot;10&quot;,text(month(today()))=&quot;11&quot;,text(month(today()))=&quot;12&quot;))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1095,7 +1129,8 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(ISCHANGED(Review_FSE__c),  OR(text(month(today()))=&quot;1&quot;,text(month(today()))=&quot;2&quot;,text(month(today()))=&quot;3&quot;))</formula>
        <formula>AND(ISCHANGED(Review_FSE__c),
OR(text(month(today()))=&quot;1&quot;,text(month(today()))=&quot;2&quot;,text(month(today()))=&quot;3&quot;))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1109,7 +1144,8 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(ISCHANGED(Review_Sales__c),  OR(text(month(today()))=&quot;1&quot;,text(month(today()))=&quot;2&quot;,text(month(today()))=&quot;3&quot;))</formula>
        <formula>AND(ISCHANGED(Review_Sales__c),
OR(text(month(today()))=&quot;1&quot;,text(month(today()))=&quot;2&quot;,text(month(today()))=&quot;3&quot;))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1119,7 +1155,12 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>OR( ISCHANGED(Name) ,  ISCHANGED(Site),  ISCHANGED(Alias_Name2__c),  ISCHANGED(City_Master__c),  ISCHANGED(Town__c),  ISCHANGED(Street__c))</formula>
        <formula>OR( ISCHANGED(Name) ,
ISCHANGED(Site),
ISCHANGED(Alias_Name2__c),
ISCHANGED(City_Master__c),
ISCHANGED(Town__c),
ISCHANGED(Street__c))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1375,7 +1416,14 @@
        </actions>
        <active>false</active>
        <description>レコードタイプ契約の時だけ動きます。</description>
        <formula>Or(   And(     Isnew(),     Not(ISPICKVAL(Contract_Fiscal_Period__c, &apos;&apos;))   ),   Ischanged(Contract_Fiscal_Period__c),    RecordType.DeveloperName = &apos;AgencyContract&apos; )</formula>
        <formula>Or(
  And(
    Isnew(),
    Not(ISPICKVAL(Contract_Fiscal_Period__c, &apos;&apos;))
  ),
  Ischanged(Contract_Fiscal_Period__c),
   RecordType.DeveloperName = &apos;AgencyContract&apos;
)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1403,7 +1451,11 @@
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>AND( Submit_Customer_target__c = TRUE, Plan_approved__c = TRUE, NOT(ISBLANK(Review_Sales__c)), ISCHANGED(Manager_feedback_check__c))</formula>
        <formula>AND(
Submit_Customer_target__c = TRUE,
Plan_approved__c = TRUE,
NOT(ISBLANK(Review_Sales__c)),
ISCHANGED(Manager_feedback_check__c))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1421,7 +1473,13 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND( Submit_Customer_target__c = true, Plan_approved__c = true, NOT(ISBLANK(Review_Sales__c)), NOT(ISBLANK(Manager_feedback_check__c)), ISCHANGED(Manager_feedback_check__c), OR(month(today())=4,month(today())=5,month(today())=6) )</formula>
        <formula>AND(
Submit_Customer_target__c = true,
Plan_approved__c = true,
NOT(ISBLANK(Review_Sales__c)),
NOT(ISBLANK(Manager_feedback_check__c)),
ISCHANGED(Manager_feedback_check__c),
OR(month(today())=4,month(today())=5,month(today())=6) )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1439,7 +1497,13 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND( Submit_Customer_target__c = true, Plan_approved__c = true, NOT(ISBLANK(Review_Sales__c)),  NOT(ISBLANK(Manager_feedback_check__c)), ISCHANGED(Manager_feedback_check__c), OR(month(today())=7,month(today())=8,month(today())=9) )</formula>
        <formula>AND(
Submit_Customer_target__c = true,
Plan_approved__c = true,
NOT(ISBLANK(Review_Sales__c)),
NOT(ISBLANK(Manager_feedback_check__c)),
ISCHANGED(Manager_feedback_check__c),
OR(month(today())=7,month(today())=8,month(today())=9) )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1457,7 +1521,13 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND( Submit_Customer_target__c = true, Plan_approved__c = true, NOT(ISBLANK(Review_Sales__c)),  NOT(ISBLANK(Manager_feedback_check__c)), ISCHANGED(Manager_feedback_check__c), OR(month(today())=10,month(today())=11,month(today())=12) )</formula>
        <formula>AND(
Submit_Customer_target__c = true,
Plan_approved__c = true,
NOT(ISBLANK(Review_Sales__c)),
NOT(ISBLANK(Manager_feedback_check__c)),
ISCHANGED(Manager_feedback_check__c),
OR(month(today())=10,month(today())=11,month(today())=12) )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1475,7 +1545,13 @@
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND( Submit_Customer_target__c = true, Plan_approved__c = true, NOT(ISBLANK(Review_Sales__c)), NOT(ISBLANK(Manager_feedback_check__c)), ISCHANGED(Manager_feedback_check__c), OR(month(today())=1,month(today())=2,month(today())=3) )</formula>
        <formula>AND(
Submit_Customer_target__c = true,
Plan_approved__c = true,
NOT(ISBLANK(Review_Sales__c)),
NOT(ISBLANK(Manager_feedback_check__c)),
ISCHANGED(Manager_feedback_check__c),
OR(month(today())=1,month(today())=2,month(today())=3) )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
@@ -1492,12 +1568,12 @@
        <criteriaItems>
            <field>Account.Submit_Customer_target__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Account.Plan_approved__c</field>
            <operation>equals</operation>
            <value>True</value>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Account.Sales_activity_target_Plan_check_day__c</field>