<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>cannotchange_agencyopp</fullName>
|
<active>true</active>
|
<description>经销商询价不能修改</description>
|
<errorConditionFormula>AND( NOT(PRIORVALUE(AgencyOpp_StageName__c)='取消'), NOT(ISBLANK(PRIORVALUE(Agency_Opportunity__c))),
|
ISCHANGED(Agency_Opportunity__c),$User.ProfileId <> LEFT($Label.ProfileId_SystemAdmin, 15))</errorConditionFormula>
|
<errorDisplayField>Agency_Opportunity__c</errorDisplayField>
|
<errorMessage>不能修改经销商询价</errorMessage>
|
</ValidationRule>
|