<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>CannotChangeColumnWithRepair</fullName>
|
<active>false</active>
|
<description>修理がある場合、商品変更できない</description>
|
<errorConditionFormula>Not(Isblank(PRIORVALUE(Product2Id))) && Not(Isblank(Product2Id))
|
&& Repair_Count__c > 0
|
&& (ISCHANGED(Product2Id)
|
|| ISCHANGED(SerialNumber)
|
)</errorConditionFormula>
|
<errorDisplayField>X147P_reserch_target__c</errorDisplayField>
|
<errorMessage>修理データあります、製品を更新できません。</errorMessage>
|
</ValidationRule>
|