涂煌豪
2022-04-11 a002dc01b27e6281f163eb35661c4a9e9541ea52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Consum_Apply_Flag_Confim</fullName>
    <active>false</active>
    <description>学会提前14天申请限制</description>
    <errorConditionFormula>AND(TEXT(demo_purpose2__c) = &apos;学会展会&apos;,
IF( Campaign__c  &lt;&gt; null,if( TODAY()-Request_shipping_day__c &lt;= 14,true,false),false))&amp;&amp;or(and(isnew(),isnull(Old_Consum_Apply__c)),text(Status__c)==&apos;草案中&apos;)
 
 
 
&amp;&amp; Not(ischanged(Loaner_cancel_request__c)) &amp;&amp; Not(ischanged(Cancel_Reason__c))
&amp;&amp; ($User.ProfileId &lt;&gt;&apos;00e10000000Y3o5&apos;)</errorConditionFormula>
    <errorMessage>申请提交必须在14天以上才可以</errorMessage>
</ValidationRule>