You need to sign in to do that
Don't have an account?
ANUDEEP PYNA
Validation rule on opportunity to move stage by stage in backwards
Hi All,
I have configured opportunity record should be moved stage by stage in order using below syntax. I have query that, can we back trace the record in descending order. For eg: Stage - 4 to Stage-3 and Stage-3 to Stage-2 etc.,
OR(
AND(ISPICKVAL(StageName, "Stage 1 - Identified Opportunity"), NOT(ISPICKVAL( PRIORVALUE(StageName) , "Stage 0 - Prospect"))),
AND(ISPICKVAL(StageName, "Stage 2 - Response"), NOT(ISPICKVAL( PRIORVALUE(StageName) , "Stage 1 - Identified Opportunity"))),
AND(ISPICKVAL(StageName, "Stage 3 – Selection"), NOT(ISPICKVAL( PRIORVALUE(StageName) , "Stage 2 - Response"))),
AND(ISPICKVAL(StageName, "Stage 4 – Negotiation"), NOT(ISPICKVAL( PRIORVALUE(StageName) , "Stage 3 – Selection")))
I have configured opportunity record should be moved stage by stage in order using below syntax. I have query that, can we back trace the record in descending order. For eg: Stage - 4 to Stage-3 and Stage-3 to Stage-2 etc.,
OR(
AND(ISPICKVAL(StageName, "Stage 1 - Identified Opportunity"), NOT(ISPICKVAL( PRIORVALUE(StageName) , "Stage 0 - Prospect"))),
AND(ISPICKVAL(StageName, "Stage 2 - Response"), NOT(ISPICKVAL( PRIORVALUE(StageName) , "Stage 1 - Identified Opportunity"))),
AND(ISPICKVAL(StageName, "Stage 3 – Selection"), NOT(ISPICKVAL( PRIORVALUE(StageName) , "Stage 2 - Response"))),
AND(ISPICKVAL(StageName, "Stage 4 – Negotiation"), NOT(ISPICKVAL( PRIORVALUE(StageName) , "Stage 3 – Selection")))
To achieve this reverse tracing, you would need to modify the existing logic and create additional conditions. The modified syntax would look something like this:
OR( AND(ISPICKVAL(StageName, "Stage 1 - Identified Opportunity"), NOT(ISPICKVAL(PRIORVALUE(StageName), "Stage 0 - Prospect"))), AND(ISPICKVAL(StageName, "Stage 2 - Response"), NOT(ISPICKVAL(PRIORVALUE(StageName), "Stage 1 - Identified Opportunity"))), AND(ISPICKVAL(StageName, "Stage 3 - Selection"), NOT(ISPICKVAL(PRIORVALUE(StageName), "Stage 2 - Response"))), AND(ISPICKVAL(StageName, "Stage 4 - Negotiation"), NOT(ISPICKVAL(PRIORVALUE(StageName), "Stage 3 - Selection"))),
This updated syntax adds conditions for tracing the record in reverse. It checks if the current stage is equal to a certain stage and the previous stage is not equal to the stage it should normally progress from.
Remember to consider any specific business requirements or constraints when implementing this logic.
I hope this solution adds value to your query. If you have any further questions, please let me know.
Regards: APKWA (https://apkwa.net/)