高章伟
2022-03-10 8db20630a2675ca14e03ccdee91c614397b5c964
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>Rental_Asset_SerialNumber_Validation</fullName>
    <active>false</active>
    <errorConditionFormula>DataMigration_Flag__c == false &amp;&amp; 
NOT(ISBLANK(Rental_Asset_SerialNumber__c))
&amp;&amp; (ISNEW() || ISCHANGED(Rental_Asset_SerialNumber__c))
&amp;&amp; (
     LEFT(Rental_Asset_SerialNumber__c, 1) &lt;&gt; &quot;,&quot;
  || RIGHT(Rental_Asset_SerialNumber__c, 1) &lt;&gt; &quot;,&quot;
  || CONTAINS(Rental_Asset_SerialNumber__c, &quot; &quot;)
)</errorConditionFormula>
    <errorMessage>借出设备机身号码的前后需要「,」、同时不能有「空白」</errorMessage>
</ValidationRule>