binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
1
2
3
4
5
6
7
8
9
10
11
<?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 ))
&amp;&amp;
Not(Isblank(Last_inspection_staff__c ) || Text(Last_inspection_staff__r.Job_Category__c) = &apos;销售服务&apos;)</errorConditionFormula>
    <errorDisplayField>Last_inspection_staff__c</errorDisplayField>
    <errorMessage>报告者(最后点检人)的职种要是销售服务</errorMessage>
</ValidationRule>