Li Jun
2022-03-31 1b8c8764c39fc546ca1b85ff1810ae51be74331c
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Is_Same_Hospital</fullName>
    <active>true</active>
    <description>请选择和修理是同一医院的设备</description>
    <errorConditionFormula>(Isnew() || Ischanged(Delivered_Product__c)) &amp;&amp; Delivered_Product__r.Hospital__c &lt;&gt; Hospital__c</errorConditionFormula>
    <errorDisplayField>Delivered_Product__c</errorDisplayField>
    <errorMessage>请选择和修理是同一医院的设备</errorMessage>
</ValidationRule>