Genesys CTI User Forum
Genesys CTI User Forum => Genesys-related Development => Topic started by: theMarine on January 12, 2017, 03:48:27 PM
-
Hi,
How can I change/update wrapuptime with COM App Block? I can ready it but don't know how to update it. I am using class CfgAgentLogin and CfgAgentLoginInfo, am I missing something?
Thanks.
Edit:
Already did it but it doesn't refresh the data in the person window in Configuraiton manager.
[C#]
[code]
KeyValueCollection wrapUpTime = new KeyValueCollection();
wrapUpTime.Add("wrap-up-time", "5");
agentLogin.UserProperties.Set("TServer", wrapUpTime);
agentLogin.Save();
[/code]
Edit #2:
Solved. Magically start working...
-
You will first need to use CfgPersonQuery to locate the person you want to modify the wrap up time for. Once you have a reference to the CfgPerson in general, then update your AgentLogin object and be sure to assign your AgentLogin object to the CfgPerson, then .Save() the CfgPerson.
CfgPerson.AgentInfo.AgentLogins
Regards,
Andrew