| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>OPDPlan_if_Have_Blank</fullName> | 
|     <active>true</active> | 
|     <description>OPD计划编码为空,请先新建OPD计划</description> | 
|     <errorConditionFormula>( ISNEW() ||  ISCHANGED(demo_purpose2__c) ||  ISCHANGED(OPDPlan__c) )&&(Text(demo_purpose2__c)='试用(无询价)' || Text(demo_purpose2__c)='试用(有询价)' || Text(demo_purpose2__c)='学会展会' || Text(demo_purpose2__c)='新产品评价' ) && ISBLANK(OPDPlan__c) && $User.ProfileId <>'00e10000000Y3o5'</errorConditionFormula> | 
|     <errorMessage>OPD计划编码为空,请先新建OPD计划</errorMessage> | 
| </ValidationRule> |