binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
force-app/main/default/objects/Consum_Apply__c/validationRules/Must_Is_DeptClas.validationRule-meta.xml
@@ -3,13 +3,13 @@
    <fullName>Must_Is_DeptClas</fullName>
    <active>true</active>
    <description>必须填写该医院下的战略科室</description>
    <errorConditionFormula>$User.ProfileId &lt;&gt;&apos;00eC800000005Cb&apos;
    <errorConditionFormula>$User.ProfileId &lt;&gt;&apos;00e10000000Y3o5&apos;
&amp;&amp; 
NOT($User.Batch_User__c) 
&amp;&amp;
Isnew() &amp;&amp; OR ( 
/* 看父记录,是医院,没有选相应的战略科室 ==&gt; 报错 */ 
AND(Account__r.Parent.Parent.RecordTypeId = &quot;012C600000003HZ&quot;,
AND(Account__r.Parent.Parent.RecordTypeId = &quot;01210000000QemG&quot;,
Account__r.ParentId &lt;&gt; Strategic_dept__c 
)</errorConditionFormula>