Li Jun
2022-04-27 f90c63155656928b86f1ce1d91a134de3d12d2b9
1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Purpose2_RepairUser_Have_Contract</fullName>
    <active>true</active>
    <errorConditionFormula>RecordTypeId  &lt;&gt; &quot;01210000000RHIn&quot;  &amp;&amp; 
(TEXT(demo_purpose2__c) &lt;&gt; &apos;保修用户&apos;) &amp;&amp; 
Repair__c != null &amp;&amp; 
(Repair__r.Number_of_EffectiveContract__c == &apos;有&apos;) &amp;&amp; ($User.ProfileId &lt;&gt;&apos;00e10000000Y3o5&apos;)</errorConditionFormula>
    <errorDisplayField>demo_purpose2__c</errorDisplayField>
    <errorMessage>有维修合同,必须选择保修用户.</errorMessage>
</ValidationRule>