Skip to main content
I have 2 fields. Status( Picklist Field) and Probability. I want the the probability field to be certain percentages depending on what is chosen for status.

 

Here is the logic I want to use:

 

Prospecting                                       1%

 

Lunch Lead                                        4%

 

WebEx                                                 5%

 

Quote Request                                 6%

 

Meeting                                               10%

 

Quote List (Budgetary)                25%

 

PoC/Evaluation                               30%

 

Quote (Formal, Discounted)     35%

 

Negotiation/Review                      40%

 

Verbal Approval                              80%

 

Purchase Order                               90%

 

Order Confirmation                       92%

 

Order Delivered                              99%

 

Closed/Won                                      100%

 

Closed/Lost                                       0%

 

Prospecting                                       1%

 

Lunch Lead                                        4%

 

WebEx                                                 5%

 

Quote Request                                 6%

 

Meeting                                               10%

 

Quote List (Budgetary)                25%

 

PoC/Evaluation                               30%

 

Quote (Formal, Discounted)     35%

 

Negotiation/Review                      40%

 

Verbal Approval                              80%

 

Purchase Order                               90%

 

Order Confirmation                       92%

 

Order Delivered                              99%

 

Closed/Won                                      100%

 

Closed/Lost                                       0%

 

Is this the correct syntax to use? I can create one line with no errors but if I add multiple lines, I am getting errors.

 

This is currently what I'm trying to use but I get errors after the 2nd line.

 

AND (

 

     ISPICKVAL( Status, "Prospecting"),

 

     Probability = 1)

 

AND (

 

     ISPICKVAL( Status, "Lunch Lead"),

 

     Probability = 4)
14 answers
  1. Apr 10, 2015, 5:38 PM

    You can just use what Steve wrote and write it like this instead = 

    CASE(

    Status__c,

    "Prospecting",0.01,

    "Lunch Lead",0.04,

    "WebEx",0.05,

    "Quote Request",0.06,

    "Meeting",0.10,

    "Quote List (Budgetary)",0.25,

    "PoC/Evaluation",0.30,

    "Quote (Formal, Discounted)",0.35,

    "Negotiation/Review",0.40,

    "Verbal Approval ",0.80,

    "Purchase Order",0.90,

    "Order Confirmation",0.92,

    "Order Delivered",0.99,

    "Closed/Won ",1,

    "Closed/Lost",0,

    0

    ) <> Probability

0/9000