涂煌豪
2022-05-17 c406cfcd9ce37fd43711bb12b3dae2b3bd120c49
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Applicant_CancelReason_Active_Only</fullName>
    <active>true</active>
    <description>必须输入取消理由</description>
    <errorConditionFormula>(($User.ProfileId &lt;&gt;&apos;00e10000000Y3o5&apos;)&amp;&amp;
($User.ProfileId &lt;&gt;&apos;00e10000000xnoT&apos;)&amp;&amp;
(NOT(CONTAINS($Label.ProfileId_EquCenAdmin, $User.ProfileId)))&amp;&amp;
($User.ProfileId &lt;&gt;&apos;00e10000000xo1D&apos;) &amp;&amp;
(NOT(CONTAINS($Label.ProfileId_EquCenCheckAndDepot, $User.ProfileId))))
&amp;&amp; ISBLANK(Cancel_Reason__c)
&amp;&amp; ISPICKVAL(Status__c, &apos;取消&apos;) &amp;&amp; NOT($User.Batch_User__c) &amp;&amp; $User.ProfileId &lt;&gt;&apos;00e10000000dEQx&apos;</errorConditionFormula>
    <errorDisplayField>Cancel_Reason__c</errorDisplayField>
    <errorMessage>必须输入取消理由</errorMessage>
</ValidationRule>