Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about workflow
#9
(09-09-2016, 03:40 PM)joebordes Wrote: a client asked us to do this yesterday, I added an update field task in the forecast amount workflow which assigns the probability BEFORE the calculation. Inside the value I selected "EXPRESSION" and put this:



Code:
if sales_stage == 'Oportunidad detectada' then 10 else if sales_stage == 'Briefing' then 20 else if sales_stage == 'Propuesta Enviada' then 30 else if sales_stage == 'Interés del Cliente' then 50 else if sales_stage == 'Negociacion' then 80 else if sales_stage == 'Closed Won' then 100 else 0 end

HTH

That stage value is a label in english? not working for me, always set 0 ... Sad

My code is there

if sales_stage == 'Prospecting' then 10 else if sales_stage == 'Qualification' then 20 else if sales_stage = 'Value Proposition' then 30 else if sales_stage == 'Id. Decision Makers' then 40 else if sales_stage == 'Proposal/Price Quote' then 50 else if sales_stage == 'Negotiation/Review' then 80 else if sales_stage == 'Closed Won' then 100 else if sales_stage == 'Closed Lost' then 0 end

Always put 0 at probability Sad

(09-09-2016, 06:41 PM)rslemer Wrote:
(09-09-2016, 03:40 PM)joebordes Wrote: a client asked us to do this yesterday, I added an update field task in the forecast amount workflow which assigns the probability BEFORE the calculation. Inside the value I selected "EXPRESSION" and put this:




Code:
if sales_stage == 'Oportunidad detectada' then 10 else if sales_stage == 'Briefing' then 20 else if sales_stage == 'Propuesta Enviada' then 30 else if sales_stage == 'Interés del Cliente' then 50 else if sales_stage == 'Negociacion' then 80 else if sales_stage == 'Closed Won' then 100 else 0 end

HTH

That stage value is a label in english? not working for me, always set 0 ... Sad


My code is there

if sales_stage == 'Prospecting' then 10 else if sales_stage == 'Qualification' then 20 else if sales_stage = 'Value Proposition' then 30 else if sales_stage == 'Id. Decision Makers' then 40 else if sales_stage == 'Proposal/Price Quote' then 50 else if sales_stage == 'Negotiation/Review' then 80 else if sales_stage == 'Closed Won' then 100 else if sales_stage == 'Closed Lost' then 0 end

Always put 0 at probability Sad
or like yours 

if sales_stage == 'Prospecting' then 10 else if sales_stage == 'Qualification' then 20 else if sales_stage = 'Value Proposition' then 30 else if sales_stage == 'Id. Decision Makers' then 40 else if sales_stage == 'Proposal/Price Quote' then 50 else if sales_stage == 'Negotiation/Review' then 80.0 else if sales_stage == 'Closed Won' then 100 else 0 end

not working too ...
Reply


Messages In This Thread
Question about workflow - rslemer - 09-08-2016, 05:57 PM
RE: Question about workflow - rslemer - 09-08-2016, 08:57 PM
RE: Question about workflow - joebordes - 09-09-2016, 02:20 PM
RE: Question about workflow - rslemer - 09-09-2016, 03:14 PM
RE: Question about workflow - joebordes - 09-09-2016, 03:40 PM
RE: Question about workflow - rslemer - 09-09-2016, 06:41 PM
RE: Question about workflow - rslemer - 09-09-2016, 03:53 PM
RE: Question about workflow - joebordes - 09-09-2016, 04:13 PM
RE: Question about workflow - rslemer - 09-09-2016, 04:42 PM
RE: Question about workflow - joebordes - 09-09-2016, 10:37 PM
RE: Question about workflow - rslemer - 09-09-2016, 11:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)