binxie
2024-01-20 0a2fc19461a141fbbb2c303142afdee22c72daac
1
2
3
4
5
6
7
8
9
10
<?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)=&apos;取消&apos;), NOT(ISBLANK(PRIORVALUE(Agency_Opportunity__c))), 
ISCHANGED(Agency_Opportunity__c),$User.ProfileId &lt;&gt; LEFT($Label.ProfileId_SystemAdmin, 15))</errorConditionFormula>
    <errorDisplayField>Agency_Opportunity__c</errorDisplayField>
    <errorMessage>不能修改经销商询价</errorMessage>
</ValidationRule>