涂煌豪
2022-05-06 ff435968945d457f9ee653a9620fa1c7d78d2d4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>For_Repair_loaner_Need_repair_number</fullName>
    <active>true</active>
    <errorConditionFormula>RecordTypeId &lt;&gt; &quot;01210000000RHIn&quot; &amp;&amp;
NOT($User.Batch_User__c) &amp;&amp;
ISBLANK(Old_Rental_Apply__c) &amp;&amp;
AND(
    ISPICKVAL(demo_purpose2__c, &quot;一般用户&quot;)
      || ISPICKVAL(demo_purpose2__c, &quot;保修用户&quot;)
      || ISPICKVAL(demo_purpose2__c, &quot;市场多年保修&quot;)
      || ISPICKVAL(demo_purpose2__c, &quot;再修理&quot;)
      || ISPICKVAL(demo_purpose2__c, &quot;故障排查&quot;),
    ISBLANK(Repair__c)
)</errorConditionFormula>
    <errorMessage>维修代用申请时,在[修理]字段必须选择修理记录</errorMessage>
</ValidationRule>