ccpulse formula to view vq in the view of agent

Hello,

I’m trying to create a statistic in the ccpulse to visualize the vq that the agent is attending.

I have passed a few steps that could bring this information, I put the filter and the formula however it does not work

result.Text = state.type == “AgentState” ? GetQueue() : “n/a”;
function GetQueue()
{
// testing CallData.Filter method. Returns
var r = “”;
for(var e = new Enumerator(state.CallData.Filter(“Key=R_TargetVQ”)); !e.atEnd(); e.moveNext())
{ if (e.item().Key==‘R_TargetVQ’)
r += e.item().Value + " ";
}
return r;
}

I would like to know if you have any formula that can read attach that the script sends me with the names of the alias or something of the type to be able to visualize my vq.

Thank you

I posted a few days ago a script to see all data on CCPulse, use it so you can create the filter correctly.

Enviado de meu E6633 usando Tapatalk

Hello,

Is this formula you’re talking about?

result.Text = state.type == “AgentState” ? GetSubject() : “n/a”;
function GetSubject()
{
// testing CallData.Filter method. Returns
var out = “”;
for(var e = new Enumerator(state.CallData); !e.atEnd(); e.moveNext())
{
out = out + e.item().toString();
}

return out;
}

With this one, at least you can check if your UserData with key “R_TargetVQ” is present…