Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: mrfly911 on March 20, 2015, 04:09:16 AM

Title: Formula- CCPulse: Count call if this Call have duration > 15
Post by: mrfly911 on March 20, 2015, 04:09:16 AM
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
Title: Re: Formula- CCPulse: Count call if this Call have duration > 15
Post by: Kubig 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.
Title: Re: Formula- CCPulse: Count call if this Call have duration > 15
Post by: mrfly911 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 ).
Title: Re: Formula- CCPulse: Count call if this Call have duration > 15
Post by: Kubig on March 20, 2015, 09:10:12 AM
And why do you not use standard function for that (ranges)?
Title: Re: Formula- CCPulse: Count call if this Call have duration > 15
Post by: mrfly911 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.
Title: Re: Formula- CCPulse: Count call if this Call have duration > 15
Post by: Kubig 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
Title: Re: Formula- CCPulse: Count call if this Call have duration > 15
Post by: cavagnaro 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