<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>DeptRecordName_IsEquals_ParentRecordName</fullName>
|
<active>true</active>
|
<description>战略科室分类的类型要和科室的客户记录类型一致。</description>
|
<errorConditionFormula>IF(
|
Parent.Parent.RecordTypeId = '01210000000QemG',
|
Department_RecordType_Name__c <> Strategic_department_Class_Name__c,
|
FALSE
|
)</errorConditionFormula>
|
<errorMessage>战略科室分类的类型和科室不匹配。</errorMessage>
|
</ValidationRule>
|