binxie
2024-01-20 0a2fc19461a141fbbb2c303142afdee22c72daac
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>canEditCelon</fullName>
    <active>true</active>
    <errorConditionFormula>(NOT(OR(LEFT($Profile.Id, 15) == LEFT($Label.ProfileId_2M4, 15) ,
LEFT($Profile.Id, 15) == LEFT($Label.ProfileId_2M5, 15) )  
))&amp;&amp; 
/* !ISNULL(Text(CelonOpportunity__c))*/
OR(ISCHANGED(CelonOpportunity__c),AND(ISNEW(),!ISBLANK(TEXT(CelonOpportunity__c))))
&amp;&amp; $Profile.Id!=&apos;00e10000000Y3o5&apos; &amp;&amp; $Profile.Id!=&apos;00e10000000dzzG&apos;</errorConditionFormula>
    <errorDisplayField>CelonOpportunity__c</errorDisplayField>
    <errorMessage>仅市场企划部门可以选择</errorMessage>
</ValidationRule>