1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Cannot_change_PIC</fullName>
    <active>true</active>
    <errorConditionFormula>$Profile.Id != &quot;00e10000000Y3o5&quot; &amp;&amp; ISCHANGED( Person_In_Charge__c )&amp;&amp; RA_Status__c  &lt;&gt; &apos;草案中&apos;</errorConditionFormula>
    <errorDisplayField>Person_In_Charge__c</errorDisplayField>
    <errorMessage>不能更改主担当</errorMessage>
</ValidationRule>