<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Last_inspection_staff_Changed</fullName>
|
<active>true</active>
|
<description>最后点检人を入力したあるいは値を変更した場合チェック</description>
|
<errorConditionFormula>(Isnew() || Ischanged(Last_inspection_staff__c ))
|
&&
|
Not(Isblank(Last_inspection_staff__c ) || Text(Last_inspection_staff__r.Job_Category__c) = '销售服务')</errorConditionFormula>
|
<errorDisplayField>Last_inspection_staff__c</errorDisplayField>
|
<errorMessage>报告者(最后点检人)的职种要是销售服务</errorMessage>
|
</ValidationRule>
|