From e0de9222da210f9c8eb1a9f5400f936a14923e11 Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期六, 20 一月 2024 13:16:47 +0800
Subject: [PATCH] addvalidationrule

---
 force-app/main/default/workflows/BatchIF_Log__c.workflow-meta.xml |  114 +++++++++------------------------------------------------
 1 files changed, 18 insertions(+), 96 deletions(-)

diff --git a/force-app/main/default/workflows/BatchIF_Log__c.workflow-meta.xml b/force-app/main/default/workflows/BatchIF_Log__c.workflow-meta.xml
index db8907e..097cb11 100644
--- a/force-app/main/default/workflows/BatchIF_Log__c.workflow-meta.xml
+++ b/force-app/main/default/workflows/BatchIF_Log__c.workflow-meta.xml
@@ -9,7 +9,7 @@
             <type>user</type>
         </recipients>
         <recipients>
-            <recipient>ling_zhu@olympus.com.cn</recipient>
+            <recipient>ling_zhu@olympus.com.cn23</recipient>
             <type>user</type>
         </recipients>
         <senderType>CurrentUser</senderType>
@@ -49,29 +49,6 @@
         <template>Olympus_OCM/BatchIF_Error</template>
     </alerts>
     <alerts>
-        <fullName>BatchIF_NFM002_Error</fullName>
-        <description>BatchIF_NFM002_Error</description>
-        <protected>false</protected>
-        <recipients>
-            <recipient>IT_SFDCGroup</recipient>
-            <type>group</type>
-        </recipients>
-        <recipients>
-            <recipient>haijuan_wang@olympus.com.cn</recipient>
-            <type>user</type>
-        </recipients>
-        <recipients>
-            <recipient>it_prectech@olympus.com.cn</recipient>
-            <type>user</type>
-        </recipients>
-        <recipients>
-            <recipient>ling_zhu@olympus.com.cn</recipient>
-            <type>user</type>
-        </recipients>
-        <senderType>CurrentUser</senderType>
-        <template>Olympus_OCM/BatchIF_Error</template>
-    </alerts>
-    <alerts>
         <fullName>BatchIF_NFM004_Error</fullName>
         <description>BatchIF_NFM004_Error</description>
         <protected>false</protected>
@@ -89,29 +66,6 @@
         <recipients>
             <recipient>BatchIF_Error_OCM_GY</recipient>
             <type>group</type>
-        </recipients>
-        <senderType>CurrentUser</senderType>
-        <template>Olympus_OCM/BatchIF_Error</template>
-    </alerts>
-    <alerts>
-        <fullName>BatchIF_NFM006_Error</fullName>
-        <description>BatchIF_NFM006_Error</description>
-        <protected>false</protected>
-        <recipients>
-            <recipient>IT_SFDCGroup</recipient>
-            <type>group</type>
-        </recipients>
-        <recipients>
-            <recipient>haijuan_wang@olympus.com.cn</recipient>
-            <type>user</type>
-        </recipients>
-        <recipients>
-            <recipient>it_prectech@olympus.com.cn</recipient>
-            <type>user</type>
-        </recipients>
-        <recipients>
-            <recipient>ling_zhu@olympus.com.cn</recipient>
-            <type>user</type>
         </recipients>
         <senderType>CurrentUser</senderType>
         <template>Olympus_OCM/BatchIF_Error</template>
@@ -173,6 +127,7 @@
     </alerts>
     <alerts>
         <fullName>BatchIF_NFM109_Error</fullName>
+        <ccEmails>gaozhangwei@prec-tech.com</ccEmails>
         <description>BatchIF_NFM109_Error</description>
         <protected>false</protected>
         <recipients>
@@ -511,7 +466,7 @@
             <type>group</type>
         </recipients>
         <recipients>
-            <recipient>ling_zhu@olympus.com.cn</recipient>
+            <recipient>ling_zhu@olympus.com.cn23</recipient>
             <type>user</type>
         </recipients>
         <senderType>CurrentUser</senderType>
@@ -546,7 +501,7 @@
             <type>user</type>
         </recipients>
         <recipients>
-            <recipient>ling_zhu@olympus.com.cn</recipient>
+            <recipient>ling_zhu@olympus.com.cn23</recipient>
             <type>user</type>
         </recipients>
         <senderType>CurrentUser</senderType>
@@ -561,7 +516,7 @@
             <type>group</type>
         </recipients>
         <recipients>
-            <recipient>ling_zhu@olympus.com.cn</recipient>
+            <recipient>ling_zhu@olympus.com.cn23</recipient>
             <type>user</type>
         </recipients>
         <senderType>CurrentUser</senderType>
@@ -609,7 +564,11 @@
             <type>Alert</type>
         </actions>
         <active>true</active>
-        <formula>Is_Error__c = 1 &amp;&amp;   (  Type__c = &quot;PushNotification&quot; || BEGINS(Type__c, &quot;DataLoaderBatch:&quot;)  ) &amp;&amp; !CONTAINS(Log__c, &quot;鐜扮姸鍒嗘瀽PDF&quot;) &amp;&amp; !CONTAINS(Log__c, &quot;澶囧搧澶囦唤&quot;)</formula>
+        <formula>Is_Error__c = 1 &amp;&amp;  
+(  Type__c = &quot;PushNotification&quot;
+|| BEGINS(Type__c, &quot;DataLoaderBatch:&quot;) 
+) &amp;&amp; !CONTAINS(Log__c, &quot;鐜扮姸鍒嗘瀽PDF&quot;)
+&amp;&amp; !CONTAINS(Log__c, &quot;澶囧搧澶囦唤&quot;)</formula>
         <triggerType>onAllChanges</triggerType>
     </rules>
     <rules>
@@ -682,24 +641,6 @@
         <triggerType>onCreateOrTriggeringUpdate</triggerType>
     </rules>
     <rules>
-        <fullName>BatchIF_NFM002_Error</fullName>
-        <actions>
-            <name>BatchIF_NFM002_Error</name>
-            <type>Alert</type>
-        </actions>
-        <active>false</active>
-        <criteriaItems>
-            <field>BatchIF_Log__c.ErrorLog__c</field>
-            <operation>notEqual</operation>
-        </criteriaItems>
-        <criteriaItems>
-            <field>BatchIF_Log__c.Type__c</field>
-            <operation>equals</operation>
-            <value>NFM002</value>
-        </criteriaItems>
-        <triggerType>onCreateOrTriggeringUpdate</triggerType>
-    </rules>
-    <rules>
         <fullName>BatchIF_NFM004_Error</fullName>
         <actions>
             <name>BatchIF_NFM004_Error</name>
@@ -737,29 +678,6 @@
             <field>BatchIF_Log__c.Type__c</field>
             <operation>equals</operation>
             <value>NFM005</value>
-        </criteriaItems>
-        <criteriaItems>
-            <field>BatchIF_Log__c.retry_cnt__c</field>
-            <operation>equals</operation>
-            <value>3,0</value>
-        </criteriaItems>
-        <triggerType>onCreateOrTriggeringUpdate</triggerType>
-    </rules>
-    <rules>
-        <fullName>BatchIF_NFM006_Error</fullName>
-        <actions>
-            <name>BatchIF_NFM006_Error</name>
-            <type>Alert</type>
-        </actions>
-        <active>false</active>
-        <criteriaItems>
-            <field>BatchIF_Log__c.ErrorLog__c</field>
-            <operation>notEqual</operation>
-        </criteriaItems>
-        <criteriaItems>
-            <field>BatchIF_Log__c.Type__c</field>
-            <operation>equals</operation>
-            <value>NFM006</value>
         </criteriaItems>
         <criteriaItems>
             <field>BatchIF_Log__c.retry_cnt__c</field>
@@ -815,7 +733,7 @@
         <criteriaItems>
             <field>BatchIF_Log__c.RowDataFlg__c</field>
             <operation>equals</operation>
-            <value>True</value>
+            <value>鐪�</value>
         </criteriaItems>
         <triggerType>onAllChanges</triggerType>
     </rules>
@@ -958,7 +876,7 @@
         <criteriaItems>
             <field>BatchIF_Log__c.RowDataFlg__c</field>
             <operation>equals</operation>
-            <value>False</value>
+            <value>鍋�</value>
         </criteriaItems>
         <triggerType>onAllChanges</triggerType>
     </rules>
@@ -1629,7 +1547,10 @@
             <type>Alert</type>
         </actions>
         <active>true</active>
-        <formula>Is_Error__c = 1 &amp;&amp;  Type__c = &quot;PushNotification&quot;  &amp;&amp; CONTAINS(Log__c, &quot;鐜扮姸鍒嗘瀽PDF&quot;)  &amp;&amp; !CONTAINS(Log__c, &quot;澶囧搧澶囦唤&quot;)</formula>
+        <formula>Is_Error__c = 1 &amp;&amp; 
+Type__c = &quot;PushNotification&quot; 
+&amp;&amp; CONTAINS(Log__c, &quot;鐜扮姸鍒嗘瀽PDF&quot;) 
+&amp;&amp; !CONTAINS(Log__c, &quot;澶囧搧澶囦唤&quot;)</formula>
         <triggerType>onAllChanges</triggerType>
     </rules>
     <rules>
@@ -1655,7 +1576,8 @@
         <active>true</active>
         <description>//灏嗗浼氫笂鐨勫伐浣滄祦瑙勫垯 &apos;鏇存柊浼氳寮�濮嬪墠7澶╂彁閱掗偖浠舵爣璇�&apos; 澶嶅埗涓篵atch
 褰撴洿鏂版姤閿欐椂,鍙戦�佺數瀛愰偖浠�</description>
-        <formula>Type__c = &quot;updateCampaignMailflg7BeTrue&quot; &amp;&amp; NOT(ISBLANK(ErrorLog__c))</formula>
+        <formula>Type__c = &quot;updateCampaignMailflg7BeTrue&quot;
+&amp;&amp; NOT(ISBLANK(ErrorLog__c))</formula>
         <triggerType>onAllChanges</triggerType>
     </rules>
     <rules>

--
Gitblit v1.9.1