Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: daniel_san on January 27, 2016, 07:20:41 PM

Title: XML to GIS
Post by: daniel_san on January 27, 2016, 07:20:41 PM
Hello all,

I´m trying to refresh variable on Application object trough GIS. With CfgUpdate object and CfgApplication

Looking on the samples of GIS i can see that it must be with xml.

This Xml is working, it can create the variable, but is not able to refresh if i launch again... Somebody knows?

String xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
<CfgData>
<CfgUpdate>
<CfgApplicationUpdateActionType DBID='351'>
<userProperties>
<list_pair key=\"v1\">
<str_pair value=\"232163\" key=\"v2\"/>
</list_pair>
</userProperties>
</CfgApplicationActionType>
</CfgUpdate>
</CfgData>
Title: Re: XML to GIS
Post by: PeteHoyle on January 29, 2016, 09:30:02 AM
Hi Daniel,

One way I have found is:

<CfgData>
  <CfgUpdate>
    <CfgApplicationUpdate DBID='522'>
    <userProperties [color=green]action="change"[/color]>
  <list_pair key="v1">
  <str_pair value="test1" key="v2"/>
  </list_pair>
  </userProperties>
    </CfgApplicationUpdate>
  </CfgUpdate>
</CfgData>

Where action can be either add, change or delete.

Pete.
Title: Re: XML to GIS
Post by: daniel_san on February 01, 2016, 09:42:08 AM
Thank you so much  :)