Li Jun
2022-04-21 03a6b8730cde75e4c42634b676c96dd9caeda07f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Need_SalesOfficeCode_When_Contract</fullName>
    <active>true</active>
    <description>Len( Maintenance_Contract_No__c ) &gt; 1 &amp;&amp; Isnull(SalesOfficeCode_selection__c)</description>
    <errorConditionFormula>$Profile.Id != &apos;00e10000000dEQx&apos; /* GPI_系统管理员 不报错 */ 
&amp;&amp; 
$User.Id != &apos;00510000000fSYI&apos; /* Batch User 不报错 */ 
&amp;&amp; 
/* 维修合同状态更新到-合同 WF の条件 */
AND(Isblank(PriorValue(Maintenance_Contract_No__c)), 
Len(Maintenance_Contract_No__c) &gt; 1)
&amp;&amp;
/* 必須チェック */
Isblank(Text(SalesOfficeCode_selection__c))</errorConditionFormula>
    <errorDisplayField>SalesOfficeCode_selection__c</errorDisplayField>
    <errorMessage>状态变为合同时,必须输入「维修合同主负者人办事处」</errorMessage>
</ValidationRule>