Hello Everybody,
I am sorry for posting something that is perhaps stupid but I am new with genesys SDK (and in fact c# - I am coming from cisco call manager world and I have been working with php and python mostly) and I have a big problem.
I have the following code to ask some config to genesys conf server.
This is working but I get crazy to extract result datas.
If I would like to get, for example, the “lastname” of all returning objects, does someone knows what I should do or have a link with some examples of something that is working ?
Thanks in advance and happy new year ![]()
CODE THAT GIVE A RESULT
PropertyConfiguration config = new PropertyConfiguration();
ConfServerProtocol protocol =
new ConfServerProtocol(new Endpoint("default", "10.32.1.11", 2020));
protocol.ClientApplicationType = (int)CfgAppType.CFGSCE;
protocol.ClientName=("aaa");
protocol.UserName="aaa";
protocol.UserPassword=("aaa");
protocol.Open();
RequestReadObjects2 requestXpathQuery =
RequestReadObjects2.Create(
(int)CfgObjectType.CFGPerson,
"CfgPerson[@emailAddress='*com' and firstName='*']");
protocol.Send(requestXpathQuery);
//remove this to be non blocking
IMessage respondingEvent =
protocol.Receive();
Console.WriteLine("[We got something]");
Console.WriteLine("** test 0 **");
foreach (var x in objectsRead.ConfObject.Elements())
{
Console.WriteLine(">#test0#"+x);
}
WHAT I GOT :
** test 0 **
#test0#