" /> CCPulse state.CallData - Genesys CTI User Forum

Author Topic: CCPulse state.CallData  (Read 2339 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
CCPulse state.CallData
« on: October 11, 2017, 04:05:02 PM »
Advertisement
[size=small][font=verdana]Hi guys[/font][/size]
[size=small][font=verdana]I am having an issue with CCPulse formulas and would like to see the full content of state[/font][/size].CallData.
[size=small][font=verdana]I tried Debug.DumpAll and Debug.Dump([/font][/size]state.CallData) but didn't work.
[size=small][/size]
[size=small][font=verdana]CCPulse Relase Notes talk about [/font][/size]Performance.EnableScriptDebug and EnableScriptDebug but for EnableScriptDebug, as usual, no idea where that setting is. and EnableScriptDebug seems to do nothing.
[size=small][/size]
[size=small][font=verdana]Any idea on how I can see this info or what else I need to enable?[/font][/size]
[size=small][/size]
[size=small][font=verdana]Thanks[/font][/size]

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: CCPulse state.CallData
« Reply #1 on: October 11, 2017, 06:24:29 PM »
Not exactly the reply you would want to hear, but just placing my own frustration on this... I've tried the same for about a week without success.
I ended up accepting only the content of CCPulse's Administrator Guide.

The scripts language accepted are Microsoft's JScript and VBScript, both which cannot walk through a collection getting the Key and Value pairs. You have to use an Enumerator object, which you can only get the Value, but not the Key (as far as I remember of my own attempts on that).

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: CCPulse state.CallData
« Reply #2 on: October 11, 2017, 07:16:42 PM »
:'(  Yeah that was my initial conclusion however the CCPulse Release Notes talks about that Dump which can be an object, so I guess I talks about a JScript object which I guess is what we are looking at...
Hopefully will get an answer from SR and post it or find something around ;)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: CCPulse state.CallData
« Reply #3 on: October 11, 2017, 07:24:23 PM »
Ahhh you gave that click lol


Here is working code  ;D ;D
[code]

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;
}
[/code]

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: CCPulse state.CallData
« Reply #4 on: October 11, 2017, 07:34:00 PM »
And now you made me remember this one:
https://docs.genesys.com/Special:Repository/ccpulse80rn.html?id=0a1ddd90-0e5a-40a1-a1db-bdc8a3a736ca#8.0.000.45
« Last Edit: October 11, 2017, 07:36:22 PM by hsujdik »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: CCPulse state.CallData
« Reply #5 on: October 11, 2017, 09:31:09 PM »
Lol as usual documentation everywhere in pieces and without any order...you must be extremely good at searching to find this kind of hidden stuff...


Enviado de meu E6633 usando Tapatalk