• nikki sharon
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
trigger
trigger skipStage on Opportunity (before update,after update) {
     if(opp.Customer_confirms__c== true && opp.StageName==       'Negotiation/Review'){
       opp.StageName = 'Closed won';
    }
     else{opp.StageName = 'Proposal/Price Quote';
        }

or validation rule 

IF(AND(Customer_confirms__c==true,
ISPICKVAL(PRIORVALUE(StageName),"Negotiation/Review")),
   ISPICKVAL(PRIORVALUE(StageName),"Closed won"),
   ISPICKVAL(PRIORVALUE(StageName),"Proposal/Price Quote"))
    
}
trigger
trigger skipStage on Opportunity (before update,after update) {
     if(opp.Customer_confirms__c== true && opp.StageName==       'Negotiation/Review'){
       opp.StageName = 'Closed won';
    }
     else{opp.StageName = 'Proposal/Price Quote';
        }

or validation rule 

IF(AND(Customer_confirms__c==true,
ISPICKVAL(PRIORVALUE(StageName),"Negotiation/Review")),
   ISPICKVAL(PRIORVALUE(StageName),"Closed won"),
   ISPICKVAL(PRIORVALUE(StageName),"Proposal/Price Quote"))
    
}