<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>canNotUpdateHospitalOwner</fullName>
|
<active>true</active>
|
<description>只有系统管理员、batch用户、接口用户、反映医院权限按钮可以更改医院所有人</description>
|
<errorConditionFormula>ISCHANGED(OwnerId) && RecordType_DeveloperName__c = 'HP' && $Profile.Id != '00e10000000Y3o5' && $Profile.Id != '00e10000000dzzG' && $Profile.Id != '00e10000000dEQx' && HosipitalToDept__c = false</errorConditionFormula>
|
<errorMessage>需要修改医院所有人的话,请联系系统管理员</errorMessage>
|
</ValidationRule>
|