<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Cannot_Change_HP_name_without_sysmanger</fullName>
|
<active>false</active>
|
<description>医院名称只能系统管理者可以修改</description>
|
<errorConditionFormula>(RecordType.DeveloperName = 'HP' || Parent.RecordType.DeveloperName = 'HP') && ISCHANGED(Name) && NOT($User.ProfileId = '00e10000000Y3o5' || ((
|
$User.ProfileId = '00e10000000xnpR'
|
|| $User.ProfileId = '00e10000000xyK6'
|
|| $User.ProfileId = '00e10000000NbCE'
|
|| $User.ProfileId = '00e10000000xnpb')
|
&& (text(Is_Active__c)= '草案中' || text(Parent.Is_Active__c)= '草案中')&& $User.Account_Name_Update__c = true))</errorConditionFormula>
|
<errorDisplayField>MaxActivityDate__c</errorDisplayField>
|
<errorMessage>需要修改医院名称的话,请联系系统管理员</errorMessage>
|
</ValidationRule>
|