彭锟
2022-03-28 572b3f4b0248130d692621827ac167e6981bc771
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>StatusCheck_IsManager</fullName>
    <active>true</active>
    <description>Error_Message4のエラーと同じロジック</description>
    <errorConditionFormula>($User.ProfileId != &apos;00e10000000Y3o5&apos; || $User.Batch_User__c != True)
&amp;&amp; Text(Status__c) == &apos;承認&apos;
&amp;&amp; Reporter__r.ManagerId != $User.Id
&amp;&amp; Reporter__r.BuchangApprovalManager__c != $User.Id
&amp;&amp; Reporter__r.BuchangApprovalManagerSales__c != $User.Id</errorConditionFormula>
    <errorDisplayField>Status__c</errorDisplayField>
    <errorMessage>上司才可以选择。</errorMessage>
</ValidationRule>