Theoretically you should be able to do this, since “00” is not blank you would specify the reason in the threshold. If you’re reason actually is blank then you might try “” instead of “00”:
If (Threshold.StatValue = StatAction.SDNANotReadyForNnextCall and Threshold.StatReasons = “00”) then
Threshold.Result = True
end if
But I’ve never been able to get this to work correctly.
Im just receiving the script timed out error when testing this threshold using both a string i.e. “Lunch” or code “08” - how can we determine what value the StatReasons is looking for? The Admin guide below suggests parsing using VBScript however that is done.
Use this read-only property to evaluate reasons in threshold and action
scripts.
The following threshold script illustrates how you can use this property
when it is applied to an agent CurrentState statistic:
If (Threshold.StatValue = StatAction.SDNANotReadyForNnextCall
and Threshold.StatReasons = “Lunch”) then
Threshold.Result = True
end if
Note that reasons and action codes can appear only for following agent
states:
• LoggedIn
• AfterCallWork
• NotReadyForNextCall
• WaitForNextCall
Reasons can originate from more than one source (T-Server, hardware,
or other), and they can be provided to CCPulse+, via Stat Server, in
string or integer format. CCPulse+ converts all reasons to string format,
separating each with a semicolon (;). To effectively evaluate the
concatenated string, the CCPulse+ Administrator might have to parse it
using VBScript.
I know that’s a quite old topic but I’ve prepared a solution. According to the CCP/SS documentation you have to create statistic with following definition:
Add CustomStatistic\ExtendedCurrentStatus=true option of CCP. It will then display result in the following format: NotReadyForNextCall (reasons) (time)
Use for example following threshold:
If (Threshold.StatValue = StatAction.SDNANotReadyForNextCall and Threshold.StatReasons = “1;1”) then
Threshold.Result = True
end if
I still couldnt make it work. My action code it´s called “Almuerzo” and it´s code is 2
I was able to make ccpulse show it in agent status as it follows "NotReadyForNextCall (2) (time-duration)
I want to make a threshold to paint agent if it´s in not ready state “Almuerzo”
What do I have to put in Threshold.StatReasons ??
I tried puttin “Almuerzo” , “2” , 2 but still doesn´t work.
Any idea?
Haha…ok ok ok…is just that I don understand how to call a Threshold.StatReason!!
You call it by name?? By code?? Because in one of the posts it´s written:
If (Threshold.StatValue = StatAction.SDNANotReadyForNextCall and Threshold.StatReasons = “1;1”) then
Threshold.Result = True
end if
Hey gzooby, we’re here to help and to learn too but there really are plenty of threads for this. When you take time to search you will find them.
Horse to water and all that
T