<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Not_Change_HP_after_past_30days</fullName>
|
<active>true</active>
|
<description>新建询价后,超过30天后,不能修改医院名称</description>
|
<errorConditionFormula>ISCHANGED( Hospital__c) && datevalue(CreatedDate) + 30 < today()
|
&& $User.Batch_User__c = false</errorConditionFormula>
|
<errorDisplayField>Hospital__c</errorDisplayField>
|
<errorMessage>新建询价后,已超过30天。不能修改医院名称。</errorMessage>
|
</ValidationRule>
|