I have a few custom formulas in CCPulse intended. Please see one example:
result.Text = state.type == “AgentState” ? Reason1() : “n/a”;
function Reason1()
{
var r = “”;
for(var i = 0; i < state.CallData.Count; i++)
{
var cd = state.CallData.Value(i);
if (cd.Status == “NotReadyForNextCall” & cd.Value > “0” &
(cd.Key == “ReasonCode” || cd.Key == “reasoncode”))
return cd.Value;
}
r += “”;
return r;
}
I’m finding that they show up upon first opening of the View, but I have to essentially manually hit peek statistics to see these updating/refreshed. Is this normal behaviour for fomulas in CCPulse?