binxie
2024-01-22 102afa21c115e8c8b9333a326c3d1af08fe76faf
force-app/main/default/objects/Consum_Apply__c/validationRules/Applicant_CancelReason_Active_Only.validationRule-meta.xml
@@ -2,12 +2,13 @@
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Applicant_CancelReason_Active_Only</fullName>
    <active>true</active>
    <errorConditionFormula>(($User.ProfileId &lt;&gt;&apos;00eC800000005Cb&apos;)&amp;&amp;
($User.ProfileId &lt;&gt;&apos;00eC600000004y5&apos;)&amp;&amp;
    <errorConditionFormula>(($User.ProfileId &lt;&gt;&apos;00e10000000Y3o5&apos;)&amp;&amp;
($User.ProfileId &lt;&gt;&apos;00e10000000xnoT&apos;)&amp;&amp;
(NOT(CONTAINS($Label.ProfileId_EquCenAdmin, $User.ProfileId)))&amp;&amp; 
($User.ProfileId &lt;&gt;&apos;00e10000000xo1D&apos;) &amp;&amp;
(NOT(CONTAINS($Label.ProfileId_EquCenCheckAndDepot, $User.ProfileId)))) 
&amp;&amp; Text(Cancel_Reason__c) &lt;&gt; &apos;主动取消&apos; 
&amp;&amp; ISPICKVAL(Status__c, &apos;取消&apos;) &amp;&amp; NOT($User.Batch_User__c) &amp;&amp; $User.ProfileId &lt;&gt;&apos;00eC600000003SX&apos;</errorConditionFormula>
&amp;&amp; ISPICKVAL(Status__c, &apos;取消&apos;) &amp;&amp; NOT($User.Batch_User__c) &amp;&amp; $User.ProfileId &lt;&gt;&apos;00e10000000dEQx&apos;</errorConditionFormula>
    <errorDisplayField>Cancel_Reason__c</errorDisplayField>
    <errorMessage>申请人只能选择主动取消。</errorMessage>
</ValidationRule>