Genesys CTI User Forum > Genesys-related Development
How can I read agent and application configuration in WDE/IWS?
Gabi:
[quote author=PeteHoyle link=topic=9465.msg42959#msg42959 date=1459877797]
Which application(s) are you trying to get and which information do you need from them?
[/quote]I'm trying to access the WDE application and get the [b]whole[/b] configuration, not just the interaction-workspace section.
I will - eventually - need information about the current agent, agent groups and campaigns too.
I'm afraid I don't know much about reading config server logs, but here's the log of the last 2 minutes (I closed WDE right after I failed to read the configuration):
http://pastebin.com/4CSyqrN3
I think the request on line 1641 may be mine, but it may also be the one WDE does on its own when it starts.
Gabi:
Nevermind, it worked. I wasn't processing the result of the request correctly.
cavagnaro:
;D Congrats! just a suggestion, try to test always with another app which is not the one on PRD, on CME you just clone the Application you are using on PRD and use that for your tests. Easier to debug ;)
Can you please share your solution code here for reference?
Thanks and good luck!
PeteHoyle:
[quote author=Gabi link=topic=9465.msg42991#msg42991 date=1460392615]
Nevermind, it worked. I wasn't processing the result of the request correctly.
[/quote]
Looks like you got it working, another method is like this:
IConfigurationService configService = container.Resolve<IConfigurationService>();
KeyValueCollection options = configService.MyApplication.Options;
Gabi:
[quote author=PeteHoyle link=topic=9465.msg42993#msg42993 date=1460449334]
[quote author=Gabi link=topic=9465.msg42991#msg42991 date=1460392615]
Nevermind, it worked. I wasn't processing the result of the request correctly.
[/quote]
Looks like you got it working, another method is like this:
IConfigurationService configService = container.Resolve<IConfigurationService>();
KeyValueCollection options = configService.MyApplication.Options;
[/quote]Thanks! I've already done what I needed, but knowing about this is bound to prove useful someday.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version