From 22bd41f13147fce1df6ff35b592720c9cb387de9 Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期四, 18 一月 2024 15:19:29 +0800
Subject: [PATCH] ali5 workflow backup0118

---
 force-app/main/default/workflows/Maintenance_Contract__c.workflow-meta.xml |   75 +++++++++++++++++++++++++------------
 1 files changed, 50 insertions(+), 25 deletions(-)

diff --git a/force-app/main/default/workflows/Maintenance_Contract__c.workflow-meta.xml b/force-app/main/default/workflows/Maintenance_Contract__c.workflow-meta.xml
index 7f2ff26..bf0e30a 100644
--- a/force-app/main/default/workflows/Maintenance_Contract__c.workflow-meta.xml
+++ b/force-app/main/default/workflows/Maintenance_Contract__c.workflow-meta.xml
@@ -16,7 +16,7 @@
             <field>Service_Contract_Staff__c</field>
             <type>userLookup</type>
         </recipients>
-        <senderAddress>18523460502@163.com</senderAddress>
+        <senderAddress>ocm_te2ampj@olympus.com.cn</senderAddress>
         <senderType>OrgWideEmailAddress</senderType>
         <template>Olympus_OCM/Before_30_Days_Contract_End</template>
     </alerts>
@@ -37,7 +37,7 @@
             <field>Service_Contract_Staff__c</field>
             <type>userLookup</type>
         </recipients>
-        <senderAddress>18523460502@163.com</senderAddress>
+        <senderAddress>ocm_te2ampj@olympus.com.cn</senderAddress>
         <senderType>OrgWideEmailAddress</senderType>
         <template>Olympus_OCM/Before_7_Days_Contract_End</template>
     </alerts>
@@ -57,7 +57,7 @@
             <field>Service_Contract_Staff__c</field>
             <type>userLookup</type>
         </recipients>
-        <senderAddress>18523460502@163.com</senderAddress>
+        <senderAddress>ocm_te2ampj@olympus.com.cn</senderAddress>
         <senderType>OrgWideEmailAddress</senderType>
         <template>Olympus_OCM/Before_90_Days_Contract_End</template>
     </alerts>
@@ -97,7 +97,7 @@
             <field>Service_Contract_Staff__c</field>
             <type>userLookup</type>
         </recipients>
-        <senderAddress>18523460502@163.com</senderAddress>
+        <senderAddress>ocm_te2ampj@olympus.com.cn</senderAddress>
         <senderType>OrgWideEmailAddress</senderType>
         <template>Contract_Folder/ConsumptionRateIntervalRemind</template>
     </alerts>
@@ -241,7 +241,7 @@
     </alerts>
     <alerts>
         <fullName>FifteenDaysBeforePayDay_Prepay</fullName>
-        <ccEmails>SFDC_LiJin@olympus.com.cn.invalid</ccEmails>
+        <ccEmails>SFDC_LiJin@olympus.com.cn</ccEmails>
         <description>15鏃ュ墠鎻愰啋-1锛堝厛娆撅級</description>
         <protected>false</protected>
         <recipients>
@@ -272,7 +272,7 @@
     </alerts>
     <alerts>
         <fullName>FifteenDaysBeforePayDay_Prepay_2</fullName>
-        <ccEmails>SFDC_LiJin@olympus.com.cn.invalid</ccEmails>
+        <ccEmails>SFDC_LiJin@olympus.com.cn</ccEmails>
         <description>15鏃ュ墠鎻愰啋-2锛堝厛娆撅級</description>
         <protected>false</protected>
         <recipients>
@@ -304,7 +304,7 @@
     </alerts>
     <alerts>
         <fullName>FifteenDaysBeforePayDay_Prepay_3</fullName>
-        <ccEmails>SFDC_LiJin@olympus.com.cn.invalid</ccEmails>
+        <ccEmails>SFDC_LiJin@olympus.com.cn</ccEmails>
         <description>15鏃ュ墠鎻愰啋-3锛堝厛娆撅級</description>
         <protected>false</protected>
         <recipients>
@@ -332,7 +332,7 @@
     </alerts>
     <alerts>
         <fullName>FifteenDaysBeforePayDay_Prepay_4</fullName>
-        <ccEmails>SFDC_LiJin@olympus.com.cn.invalid</ccEmails>
+        <ccEmails>SFDC_LiJin@olympus.com.cn</ccEmails>
         <description>15鏃ュ墠鎻愰啋-4锛堝厛娆撅級</description>
         <protected>false</protected>
         <recipients>
@@ -364,7 +364,7 @@
     </alerts>
     <alerts>
         <fullName>FifteenDaysBeforePayDay_Prepay_5</fullName>
-        <ccEmails>SFDC_LiJin@olympus.com.cn.invalid</ccEmails>
+        <ccEmails>SFDC_LiJin@olympus.com.cn</ccEmails>
         <description>15鏃ュ墠鎻愰啋-5锛堝厛娆撅級</description>
         <protected>false</protected>
         <recipients>
@@ -396,7 +396,7 @@
     </alerts>
     <alerts>
         <fullName>FifteenDaysBeforePayDay_Prepay_6</fullName>
-        <ccEmails>SFDC_LiJin@olympus.com.cn.invalid</ccEmails>
+        <ccEmails>SFDC_LiJin@olympus.com.cn</ccEmails>
         <description>15鏃ュ墠鎻愰啋-6锛堝厛娆撅級</description>
         <protected>false</protected>
         <recipients>
@@ -876,6 +876,10 @@
             <type>user</type>
         </recipients>
         <recipients>
+            <recipient>daisuke_goto@olympus.com.cn</recipient>
+            <type>user</type>
+        </recipients>
+        <recipients>
             <recipient>haijuan_wang@olympus.com.cn</recipient>
             <type>user</type>
         </recipients>
@@ -889,6 +893,10 @@
         </recipients>
         <recipients>
             <recipient>jue_xu@olympus.com.cn</recipient>
+            <type>user</type>
+        </recipients>
+        <recipients>
+            <recipient>kazuyuki_tada@olympus.com.cn</recipient>
             <type>user</type>
         </recipients>
         <recipients>
@@ -1359,7 +1367,7 @@
         <criteriaItems>
             <field>Maintenance_Contract__c.Approval1__c</field>
             <operation>equals</operation>
-            <value>True</value>
+            <value>鐪�</value>
         </criteriaItems>
         <triggerType>onCreateOrTriggeringUpdate</triggerType>
     </rules>
@@ -1389,7 +1397,7 @@
         <criteriaItems>
             <field>Maintenance_Contract__c.old_Is_RecognitionModel__c</field>
             <operation>equals</operation>
-            <value>True</value>
+            <value>鐪�</value>
         </criteriaItems>
         <triggerType>onCreateOrTriggeringUpdate</triggerType>
     </rules>
@@ -1471,7 +1479,7 @@
         <criteriaItems>
             <field>Maintenance_Contract__c.Contract_End_Date__c</field>
             <operation>greaterThan</operation>
-            <value>TODAY</value>
+            <value>浠婂ぉ</value>
         </criteriaItems>
         <criteriaItems>
             <field>Maintenance_Contract__c.RecordTypeId</field>
@@ -1521,7 +1529,7 @@
         <criteriaItems>
             <field>Maintenance_Contract__c.DevApply__c</field>
             <operation>equals</operation>
-            <value>True</value>
+            <value>鐪�</value>
         </criteriaItems>
         <triggerType>onCreateOrTriggeringUpdate</triggerType>
     </rules>
@@ -1867,7 +1875,9 @@
             <type>FieldUpdate</type>
         </actions>
         <active>true</active>
-        <formula>Isblank(Text(SalesOfficeCode_selection__c))  &amp;&amp; Case(Service_Contract_Staff__r.Province__c,&apos;娴欐睙鐪�&apos;,     IF(NOT(OR(Hospital__r.City_Master__r.Name == &apos;鑸熷北甯�&apos;,Hospital__r.City_Master__r.Name == &apos;缁嶅叴甯�&apos;,Hospital__r.City_Master__r.Name == &apos;瀹佹尝甯�&apos;)),1,0), 0) == 1</formula>
+        <formula>Isblank(Text(SalesOfficeCode_selection__c)) 
+&amp;&amp; Case(Service_Contract_Staff__r.Province__c,&apos;娴欐睙鐪�&apos;, 
+   IF(NOT(OR(Hospital__r.City_Master__r.Name == &apos;鑸熷北甯�&apos;,Hospital__r.City_Master__r.Name == &apos;缁嶅叴甯�&apos;,Hospital__r.City_Master__r.Name == &apos;瀹佹尝甯�&apos;)),1,0), 0) == 1</formula>
         <triggerType>onCreateOnly</triggerType>
     </rules>
     <rules>
@@ -1877,7 +1887,9 @@
             <type>FieldUpdate</type>
         </actions>
         <active>true</active>
-        <formula>Isblank(Text(SalesOfficeCode_selection__c)) &amp;&amp; Case(Service_Contract_Staff__r.Province__c, &apos;涓婃捣甯�&apos;, 1, &apos;绂忓缓鐪�&apos;, 1, &apos;姹熻嫃鐪�&apos;, 1, &apos;姹熻タ鐪�&apos;, 1, &apos;瀹夊窘鐪�&apos;, 1   ,&apos;娴欐睙鐪�&apos;, if(OR(Hospital__r.City_Master__r.Name == &apos;鑸熷北甯�&apos;,Hospital__r.City_Master__r.Name == &apos;缁嶅叴甯�&apos;,Hospital__r.City_Master__r.Name == &apos;瀹佹尝甯�&apos;),1,0)    , 0 ) == 1</formula>
+        <formula>Isblank(Text(SalesOfficeCode_selection__c)) &amp;&amp; Case(Service_Contract_Staff__r.Province__c, &apos;涓婃捣甯�&apos;, 1, &apos;绂忓缓鐪�&apos;, 1, &apos;姹熻嫃鐪�&apos;, 1, &apos;姹熻タ鐪�&apos;, 1, &apos;瀹夊窘鐪�&apos;, 1
+  ,&apos;娴欐睙鐪�&apos;, if(OR(Hospital__r.City_Master__r.Name == &apos;鑸熷北甯�&apos;,Hospital__r.City_Master__r.Name == &apos;缁嶅叴甯�&apos;,Hospital__r.City_Master__r.Name == &apos;瀹佹尝甯�&apos;),1,0) 
+  , 0 ) == 1</formula>
         <triggerType>onCreateOnly</triggerType>
     </rules>
     <rules>
@@ -1911,7 +1923,7 @@
         <criteriaItems>
             <field>Maintenance_Contract__c.Switch_TimeBase_WF__c</field>
             <operation>equals</operation>
-            <value>True</value>
+            <value>鐪�</value>
         </criteriaItems>
         <triggerType>onCreateOrTriggeringUpdate</triggerType>
         <workflowTimeTriggers>
@@ -1935,7 +1947,7 @@
         <criteriaItems>
             <field>Maintenance_Contract__c.Switch_TimeBase_WF__c</field>
             <operation>equals</operation>
-            <value>True</value>
+            <value>鐪�</value>
         </criteriaItems>
         <triggerType>onCreateOrTriggeringUpdate</triggerType>
         <workflowTimeTriggers>
@@ -1959,7 +1971,7 @@
         <criteriaItems>
             <field>Maintenance_Contract__c.Switch_TimeBase_WF__c</field>
             <operation>equals</operation>
-            <value>True</value>
+            <value>鐪�</value>
         </criteriaItems>
         <triggerType>onCreateOrTriggeringUpdate</triggerType>
         <workflowTimeTriggers>
@@ -1993,12 +2005,12 @@
         <criteriaItems>
             <field>Maintenance_Contract__c.Switch_TimeBase_WF__c</field>
             <operation>equals</operation>
-            <value>True</value>
+            <value>鐪�</value>
         </criteriaItems>
         <criteriaItems>
             <field>Maintenance_Contract__c.Contract_End_Date__c</field>
             <operation>greaterOrEqual</operation>
-            <value>TODAY</value>
+            <value>浠婂ぉ</value>
         </criteriaItems>
         <description>鏈潵鏃堕棿鐨勫伐浣滄祦</description>
         <triggerType>onCreateOrTriggeringUpdate</triggerType>
@@ -2027,12 +2039,12 @@
         <criteriaItems>
             <field>Maintenance_Contract__c.Switch_TimeBase_WF__c</field>
             <operation>equals</operation>
-            <value>True</value>
+            <value>鐪�</value>
         </criteriaItems>
         <criteriaItems>
             <field>Maintenance_Contract__c.Contract_End_Date__c</field>
             <operation>lessThan</operation>
-            <value>TODAY</value>
+            <value>浠婂ぉ</value>
         </criteriaItems>
         <description>濂戠磩绲備簡鏃ャ倰閬庡幓鏃ャ伀鏇存柊銇椼仧鏅�</description>
         <triggerType>onAllChanges</triggerType>
@@ -2089,7 +2101,20 @@
         </actions>
         <active>false</active>
         <description>褰撴洿鏂拌繃璇环璺熻繘淇℃伅涓换鎰忎竴涓俊鎭紝鍒欑粰鍙樻洿鏃ユ湡璧嬪��=鏈�鍚庢洿鏂版棩鏈�</description>
-        <formula>OR(ISCHANGED(Opportunity_Stage__c), ISCHANGED(Sales_Method__c), ISCHANGED(Sales_Method_Other__c), ISCHANGED(Next_Action__c), ISCHANGED(Negotiation_Start_Date__c), ISCHANGED(Quotation_Submission_Date__c), ISCHANGED(Quotation_Decision_Date__c), ISCHANGED(Last_Update_Date__c), ISCHANGED(Expected_Check_Back_Date__c), ISCHANGED(Cumulative_Followup__c), ISCHANGED(Renewal_Status__c), ISCHANGED(No_Renewal_Reason__c) ) = true &amp;&amp; ($User.ProfileId !=&apos;00e10000000Y3o5&apos; &amp;&amp;  $User.Batch_User__c  != true) &amp;&amp;  !ISNEW()</formula>
+        <formula>OR(ISCHANGED(Opportunity_Stage__c),
+ISCHANGED(Sales_Method__c),
+ISCHANGED(Sales_Method_Other__c),
+ISCHANGED(Next_Action__c),
+ISCHANGED(Negotiation_Start_Date__c),
+ISCHANGED(Quotation_Submission_Date__c),
+ISCHANGED(Quotation_Decision_Date__c),
+ISCHANGED(Last_Update_Date__c),
+ISCHANGED(Expected_Check_Back_Date__c),
+ISCHANGED(Cumulative_Followup__c),
+ISCHANGED(Renewal_Status__c),
+ISCHANGED(No_Renewal_Reason__c)
+) = true
+&amp;&amp; ($User.ProfileId !=&apos;00e10000000Y3o5&apos; &amp;&amp;  $User.Batch_User__c  != true) &amp;&amp;  !ISNEW()</formula>
         <triggerType>onAllChanges</triggerType>
     </rules>
     <rules>
@@ -2098,7 +2123,7 @@
         <criteriaItems>
             <field>Maintenance_Contract__c.duplicate_deleate_request__c</field>
             <operation>equals</operation>
-            <value>True</value>
+            <value>鐪�</value>
         </criteriaItems>
         <triggerType>onCreateOrTriggeringUpdate</triggerType>
     </rules>

--
Gitblit v1.9.1