Genesys CTI User Forum > Genesys-related Development

XML to GIS

(1/1)

daniel_san:
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>

PeteHoyle:
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.

daniel_san:
Thank you so much  :)

Navigation

[0] Message Index

Go to full version