<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>ProductCheck_2M2</fullName> 
 | 
    <active>false</active> 
 | 
    <description>2M2只能新建竞品耗材的保有设备</description> 
 | 
    <errorConditionFormula>(ISNEW() || ISCHANGED(Product2Id)) && $Profile.Id = '00e10000000u47b' && Product2.RecordTypeId != '01210000000aMAD'</errorConditionFormula> 
 | 
    <errorDisplayField>Product2Id</errorDisplayField> 
 | 
    <errorMessage>请选择竞品-耗材类的产品</errorMessage> 
 | 
</ValidationRule> 
 |