<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>IsBodyOrIsAccessory</fullName>
|
<active>true</active>
|
<errorConditionFormula>NOT(ISBLANK(Asset__c)) && DataMigration_Flag__c == false &&
|
Not(
|
Loaner_accsessary__c || Is_Body__c
|
&& (Not(Loaner_accsessary__c) || Not(Is_Body__c))
|
) &&
|
($User.ProfileId <>'00e10000000Y3o5')&&
|
($User.ProfileId <>'00e10000000xo1D')</errorConditionFormula>
|
<errorMessage>必须明确是主体 还是 附属品</errorMessage>
|
</ValidationRule>
|