binxie
2024-01-18 0e0dd1e20e7211f3c3c11d77a41090d998dfd06c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Need_ContractDate_When_Contract</fullName>
    <active>true</active>
    <errorConditionFormula>$Profile.Id != &apos;00eC600000003SX&apos; /* GPI_系统管理员 不报错 */ 
&amp;&amp;
$Profile.Id != &apos;00eC800000005Cb&apos; /* 系统管理员 不报错 */ 
&amp;&amp;  
$User.Id != &apos;005C60000001UFN&apos; /* Batch User 不报错 */ 
&amp;&amp; 
Len( Maintenance_Contract_No__c ) &gt; 1 &amp;&amp; Isnull(Contract_Conclusion_Date__c)</errorConditionFormula>
    <errorDisplayField>Contract_Conclusion_Date__c</errorDisplayField>
    <errorMessage>状态变为合同时,必须输入「合同日」</errorMessage>
</ValidationRule>