binxie
2024-01-22 102afa21c115e8c8b9333a326c3d1af08fe76faf
1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Can_not_update_hospital</fullName>
    <active>true</active>
    <errorConditionFormula>($User.ProfileId != &apos;00e10000000xo1D&apos; &amp;&amp; $User.ProfileId !=&apos;00e10000000Y3o5&apos;) &amp;&amp; ISCHANGED(Hospital__c)</errorConditionFormula>
    <errorDisplayField>Hospital__c</errorDisplayField>
    <errorMessage>只有系统管理员和有权限的人,才能更新医院(科室)。</errorMessage>
</ValidationRule>