binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>DeptClassHospital_IsEquals_Hospital</fullName>
    <active>true</active>
    <description>战略科室的医院要和科室的医院一致</description>
    <errorConditionFormula>IF(
  Parent.Parent.RecordTypeId = &apos;01210000000QemG&apos;,
  IF(
    Hospital__c &lt;&gt; Parent.ParentId,
    TRUE,
    FALSE
  ),
  FALSE
)</errorConditionFormula>
    <errorMessage>战略科室的医院要和科室的医院一致</errorMessage>
</ValidationRule>