Skip to main content
Looking for a better way, but not sure how to go about this.  I currently have 5 workfows that update a picklist field based on different criteria.  It is possible for more than 1 of the workflows to be correct, and overwrite what's been input.  BUT there may be times when overwriting it is appropriate, so what I am hoping to figure out is a way to prioritize the results.  

 

This is the basic logic I’d need in order of priority:

 

 

 

1. IF Opportunity.Type = “Upsell” or “Partner Upsell”, THEN Origin.Type = UPSELL

 

2. IF Opportunity.Type.Detail = “Direct SCP Referral”, OR IF Account.Type = “Strategic Consulting Partner”, THEN Origin.Type = “SCP/CHANNEL”

 

3. IF Opportunity.Lead.Source = “Sales Generated”, THEN “Origin.Type = SALES GENERATED

 

4. IF Account.SDR =! Null, THEN Origin.Type = “SDR BOOKED”

 

5. IF none of the above, THEN Origin.Type = “MARKETING”

 

 

 

All of the IF fields noted above are in the Opportunity object, except Account.Type, and are pick list values, except the Account.SDR field which is a lookup.  In this scenario, Upsell could overwrite any value below it, SCP could overwrite any value except Upsell, etc.  

 

I am absolutely open to ditching the picklist field and workflows in favor of something more streamlined, I am just not sure how to go about all this.  Any ideas?

 

 
8 respuestas
  1. 20 ene 2016, 23:48
    You don't really need to control the priority/order of these, you just need to expand the logic of each one to not fire if the criteria in the workflows above it are true

     

    Example #2 would be:

     

    IF Opportunity.Type.Detail = “Direct SCP Referral” OR IF Account.Type = “Strategic Consulting Partner”,

     

    AND   NOT(Opportunity.Type = “Upsell” or “Partner Upsell”)

     

    THEN Origin.Type = “SCP/CHANNEL”

     

    The easiest way might be to make 4 checkbox formulas that return true for #1-4.

     

    Workflow 1 would fire when Formula 1 = true

     

    Workflow 2 would fire when Formula 2 = true and Formula 1 = false

     

    ...

     

    Workflow 5 would fire when Formula 1, 2, 3 and 4 = false.
0/9000