Skip to main content
Saleya Aziz が「#Formulas」で質問

I have a validation rule in place for a custom Probability % field on the Opportunity. It forces certain profiles to update the field every time they edit the Opportunity record at certain stages of the opp. The issue I am having is that now they are unable to add Product Line Items to the Opp at those specified stages - getting an error saying they must update the Probability field but this is not possible when trying to add a Line Item. 

Is there a way to allow Product Line Items to be added to the Opp without an error? Formula I am using is below. 

 

Any help would be greatly appreciated! 

 

AND( OR( ISPICKVAL(StageName, 'Proposed and Quoted'), ISPICKVAL(StageName, 'Design Review'), ISPICKVAL(StageName, 'Customer Evaluation'), ISPICKVAL(StageName, 'Shortlist'), ISPICKVAL(StageName, 'Negotiation') ), OR($Profile.Name = "Customer Relationship Manager/Network Services", $Profile.Name = "New Business Sales", $Profile.Name = "Sales", $Profile.Name = "Sales Manager"), NOT(ISCHANGED(Probability__c )))

 

@Formulas - Help, Tips and Tricks

 

Validation rule exception

2 件の回答
  1. 2022年3月18日 13:18

    So something like this?

     

    AND(

    ISCHANGED( StageName ),

    OR(

    ISPICKVAL(StageName, 'Proposed and Quoted'),

    ISPICKVAL(StageName, 'Design Review'),

    ISPICKVAL(StageName, 'Customer Evaluation'),

    ISPICKVAL(StageName, 'Shortlist'),

    ISPICKVAL(StageName, 'Negotiation')

    ),

    OR(

    $Profile.Name = "Customer Relationship Manager/Network Services",

    $Profile.Name = "New Business Sales",

    $Profile.Name = "Sales",

    $Profile.Name = "Sales Manager"

    ),

    NOT(ISCHANGED(Probability__c ))

    )

0/9000