" /> Formula- CCPulse: Count call if this Call have duration > 15 - Genesys CTI User Forum

Author Topic: Formula- CCPulse: Count call if this Call have duration > 15  (Read 3718 times)

Offline mrfly911

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Advertisement
Dear all,

I try to create new formula on CC Pulse Template which is only count that call if duration > 15 sec.

result.Duration = CalculationDuration();
var num =  CalculationDuration();
function CalculationDuration()
{
if(num = 0)
{
if (ccpulse.CALL.statistic("Talk Times") > 15)
return num+1;
else return num;
}
else
if (ccpulse.CALL.statistic("Talk Times") > 15)
return num+1;
else return num;
}



However, It can't work as i expected . Anyone  have experience with Formula CC Pulse and Global Variable of JSCRIPT Language

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Formula- CCPulse: Count call if this Call have duration > 15
« Reply #1 on: March 20, 2015, 07:41:02 AM »
The code does not make a sense from my point of view. What do you want to achieve?

PS: I think, that CCP+ uses VBScript.

Offline mrfly911

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Formula- CCPulse: Count call if this Call have duration > 15
« Reply #2 on: March 20, 2015, 08:47:34 AM »
Hi Kubig,


For example :
1 user Call 200 Calls per day but only 90 Call have duration > 15s

Now CC Pulse only show 200 Calls , but i want to create new formula that filter quality calls only ( duration > 15s ).

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Formula- CCPulse: Count call if this Call have duration > 15
« Reply #3 on: March 20, 2015, 09:10:12 AM »
And why do you not use standard function for that (ranges)?

Offline mrfly911

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Formula- CCPulse: Count call if this Call have duration > 15
« Reply #4 on: March 20, 2015, 09:16:38 AM »
Hi Kubig,

Could you please give it more detail ?
Which function i can use instead of FORMULA.

Thank you so much.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Formula- CCPulse: Count call if this Call have duration > 15
« Reply #5 on: March 20, 2015, 09:46:53 AM »
You have not to use formula - you can just use statistic and within template wizard define the used Range - check the guides

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Formula- CCPulse: Count call if this Call have duration > 15
« Reply #6 on: March 20, 2015, 04:16:57 PM »
Or create a statistic with a Time filter, if Range is > 15 then you print it
Check StatServer guide