Author Topic: Agent Login - wrapuptime  (Read 2519 times)

Offline theMarine

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Agent Login - wrapuptime
« 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...
« Last Edit: January 12, 2017, 07:20:46 PM by theMarine »

Offline abudwill

  • Full Member
  • ***
  • Posts: 157
  • Karma: 4
Re: Agent Login - wrapuptime
« Reply #1 on: January 13, 2017, 03:59:00 PM »
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