高章伟
2023-03-28 32ca554edf2f2533790ad095e5691bbe478468a3
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>OPDOPDFollowUpFile</fullName>
    <active>true</active>
    <description>OPD计划出借目的选择opd时,模型出借型号、对应修理NO、附件说明不用填写(跳过拆单)</description>
    <errorConditionFormula>(ISCHANGED( RentalReson__c )||  ISNEW() ) &amp;&amp; TEXT( RentalReson__c ) ==&apos;OPD&apos;&amp;&amp; ISBLANK(  AttachmentCertificate__c)==false &amp;&amp;TEXT( OPDType__c)!=&apos;学会&apos;&amp;&amp; ISBLANK(OriginalOpdPlanRental__c)&amp;&amp; $User.ProfileId &lt;&gt;&apos;00e10000000Y3o5&apos;</errorConditionFormula>
    <errorDisplayField>AttachmentCertificate__c</errorDisplayField>
    <errorMessage>OPD计划出借目的选择opd时,附件证明不需填写</errorMessage>
</ValidationRule>