<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>NextPlanDateCheck</fullName> 
 | 
    <active>true</active> 
 | 
    <description>跳过系统管理员</description> 
 | 
    <errorConditionFormula>$User.ProfileId <> "00e10000000Y3o5" &&  Text(CancelOPDPlan__r.OPDType__c) != '学会' &&((NextPlanDate__c - TODAY() > 60)||(NextPlanDate__c - TODAY() < 1))</errorConditionFormula> 
 | 
    <errorMessage>计划日期只能在60天内</errorMessage> 
 | 
</ValidationRule> 
 |