Li Jun
2022-04-27 f90c63155656928b86f1ce1d91a134de3d12d2b9
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Cannot_Change_CancelANDCancelR</fullName>
    <active>true</active>
    <errorConditionFormula>DataMigration_Flag__c == false
 &amp;&amp; PRIORVALUE(Cancel_Select__c)
 &amp;&amp; (ISCHANGED(Cancel_Select__c)
            ||  (ISCHANGED(Cancel_Reason__c)
                     &amp;&amp; NOT(OneToOne_Flag__c &amp;&amp;  ISPICKVAL(Cancel_Reason__c,&apos;重新分配&apos;))
                 )
        )</errorConditionFormula>
    <errorMessage>取消理由和取消分配Flag设置完了后,不能修改。</errorMessage>
</ValidationRule>