Li Jun
2022-03-17 69dc5df6ec51f6f7f6737c61d9c4c1e7757a2b96
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>