binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
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>Sales_Root_ChangeRule</fullName>
    <active>true</active>
    <description>状態が敗戦、削除の時および見積決定後は 内貿/外貿、販売ルート を変更することはできません。</description>
    <errorConditionFormula>AND(
  OR(Estimation_Decision__c,  
    ISPICKVAL( StageName , &apos;敗戦&apos;),
    ISPICKVAL( StageName , &apos;削除&apos;) 
  ),
    ISCHANGED( Sales_Root__c ))</errorConditionFormula>
    <errorMessage>状态为失单/取消时,或报价决定后,不可以修改销售渠道。</errorMessage>
</ValidationRule>