" /> Number of KVP in a particular ITEM in a LIST object - Genesys CTI User Forum

Author Topic: Number of KVP in a particular ITEM in a LIST object  (Read 2346 times)

Offline Ansh

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Number of KVP in a particular ITEM in a LIST object
« on: August 28, 2009, 11:43:25 AM »
Advertisement
Hi,

Can anyone help me out with the function in a Routing Strategy for finding number of KVP's in a Particular ITEM in a LIST object.

Thanks in Advance,
Ansh

KBS

  • Guest
Re: Number of KVP in a particular ITEM in a LIST object
« Reply #1 on: August 28, 2009, 01:48:23 PM »
In URS there is the ListGetSize function.

You'll need to retrieve the ITEM into a strategy variable using the ListGetDataCfg function, then use the ListGetSize.

Refer to the URS Reference for specifics on using these functions.

Offline Ansh

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Number of KVP in a particular ITEM in a LIST object
« Reply #2 on: August 29, 2009, 12:17:03 PM »
Thanks KBS. Can you further help me with following

I have a string AG1|AG2|....AGn, i have to get each AG1 , AG2, etc out from this separately and calculate the statistic on it. For Tracking , i would need the value of n as well which is the number of AG separated by the pipe.

Appreciate you help.

Thanks,
Ansh