<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Asistant_can_not_change_OCM_hospital_cat</fullName>
|
<active>true</active>
|
<description>助理不能修改医院字段OCSM分类(医院)
|
//20220331
|
NOT(ISNEW()) && ($User.ProfileId = '00e10000000xnpR' || $User.ProfileId = '00e10000000xyK6')&&
|
ISCHANGED(OCM_Category__c) &&
|
RecordType.Id = '01210000000QemG'</description>
|
<errorConditionFormula>NOT(ISNEW()) && ($User.ProfileId = '00e10000000xnpR' || $User.ProfileId = '00e10000000xyK6')&&
|
ISCHANGED(OCM_Category__c) &&
|
RecordType.Id = '01210000000QemG' && TEXT( Is_Active__c) != '草案中'</errorConditionFormula>
|
<errorDisplayField>OCM_Category__c</errorDisplayField>
|
<errorMessage>不能修改OCSM分类(医院)</errorMessage>
|
</ValidationRule>
|