<?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 ) > 1 && Isnull(SalesOfficeCode_selection__c)</description>
|
<errorConditionFormula>$Profile.Id != '00e10000000dEQx' /* GPI_系统管理员 不报错 */
|
&&
|
$User.Id != '00510000000fSYI' /* Batch User 不报错 */
|
&&
|
/* 维修合同状态更新到-合同 WF の条件 */
|
AND(Isblank(PriorValue(Maintenance_Contract_No__c)),
|
Len(Maintenance_Contract_No__c) > 1)
|
&&
|
/* 必須チェック */
|
Isblank(Text(SalesOfficeCode_selection__c))</errorConditionFormula>
|
<errorDisplayField>SalesOfficeCode_selection__c</errorDisplayField>
|
<errorMessage>状态变为合同时,必须输入「维修合同主负者人办事处」</errorMessage>
|
</ValidationRule>
|