binxie
2024-01-16 4d3febe8045eb0fa0283af3c53b0c48344b8664d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>GI_Diff_Must_Input</fullName>
    <active>true</active>
    <errorConditionFormula>IF(OR(ISNEW()
    ,AND(Is_Auto__c ,UNIXTIMESTAMP(NOW()) - UNIXTIMESTAMP(CreatedDate) &lt; 120)
    ,DataMigration_Flag__c 
    ,ISchanged(BRId__c)
    ,ISchanged(QRId__c) 
    )
,false,
Salesdept__c = &apos;消化·呼吸内镜事业本部&apos; 
&amp;&amp; ISBLANK(TEXT(GI_Diff__c)) 
&amp;&amp; $User.ProfileId &lt;&gt;&apos;00e10000000Y3o5&apos; 
&amp;&amp; NOT($User.Batch_User__c) 
)</errorConditionFormula>
    <errorDisplayField>GI_Diff__c</errorDisplayField>
    <errorMessage>GI本部必须选择本部区分</errorMessage>
</ValidationRule>