Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: alanesteves on October 18, 2017, 08:31:48 PM

Title: ccpulse formula to view vq in the view of agent
Post by: alanesteves on October 18, 2017, 08:31:48 PM
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
Title: Re: ccpulse formula to view vq in the view of agent
Post by: cavagnaro on October 18, 2017, 09:06:03 PM
[quote author=alanesteves link=topic=10694.msg48547#msg48547 date=1508358708]
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
[/quote]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

Title: Re: ccpulse formula to view vq in the view of agent
Post by: alanesteves on October 19, 2017, 01:19:55 PM
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;
}
Title: Re: ccpulse formula to view vq in the view of agent
Post by: hsujdik on October 19, 2017, 01:47:36 PM
[quote author=alanesteves link=topic=10694.msg48555#msg48555 date=1508419195]
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;
}

[/quote]
With this one, at least you can check if your UserData with key "R_TargetVQ" is present...