denny chen
2023-03-29 6a471bc62a8567abd74dcef733fcddf9911b6a16
1
2
3
4
5
6
7
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>checkSameProduct</fullName>
    <active>true</active>
    <errorConditionFormula>OR(AND(NOT(ISBLANK(Product_Category1__c)), NOT(ISBLANK(Product_Category2__c)), Product_Category1__c = Product_Category2__c) , AND(NOT(ISBLANK(Product_Category1__c)), NOT(ISBLANK(Product_Category3__c)), Product_Category1__c = Product_Category3__c), AND(NOT(ISBLANK(Product_Category3__c)), NOT(ISBLANK(Product_Category2__c)), Product_Category2__c = Product_Category3__c))</errorConditionFormula>
    <errorMessage>请选择不同的产品区分</errorMessage>
</ValidationRule>