" /> [SOLVED] KVListGetStringValue - Genesys CTI User Forum

Author Topic: [SOLVED] KVListGetStringValue  (Read 2022 times)

Offline raza990

  • Full Member
  • ***
  • Posts: 214
  • Karma: 5
[SOLVED] KVListGetStringValue
« on: July 18, 2017, 09:46:31 AM »
Advertisement
Hi,

If I want get KVP from Person object (For example Person/Raza)  from section interaction-workspace where option name is chat.nickname; then which function I will use in routing strategy ?

I tried KVListGetStringValue but its not working 🙄

KVListGetStringValue[sGetStringKey,'annex.interaction-workspace.chat.nickname']
where passing List as person DBID

Any idea ?
« Last Edit: July 20, 2017, 02:33:42 AM by raza990 »

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: KVListGetStringValue
« Reply #1 on: July 18, 2017, 06:51:45 PM »
How exactly you get person object in strategy (or what exactly is value of sGetStringKey variable)?
In any case using option/key having dots inside (chat.nickname) a  bit tricky as dot used as sublist/subkey separator.
URS has no way to know that first dot in 'annex.interaction-workspace.chat.nickname' means key.subkey separator but third dot is just regular part of key name.
You probably will need do it in 2steps - first extract sublist KVLiitGetListValue (interpreting dot as separator) and after that extract string from smaller KVList (disabling interpreting dot as separator)


Offline raza990

  • Full Member
  • ***
  • Posts: 214
  • Karma: 5
[SOLVED] KVListGetStringValue
« Reply #2 on: July 19, 2017, 06:17:09 AM »
solved.

Using GetStringKey function and select KVP which I was receiving from FindConfigObject function.