Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: ichatterjee on January 12, 2018, 01:24:46 PM
-
Hello,
I want to implement Agent Desktop, and on call end I need to show the list of Wrap up codes for agent. Is there any API in PSDK Java version 8.5.
Any pointers would be appreciated.
-
Seems you are asking everything...just grab the code and read the objects created on CME as Action codes
Give a study to the PSDK first
-
Hi,
It all depends on how you configure your DispostionCode, for example WDE uses BusinessAttributes to conifgure the dispostion codes, but other Agent Desktops may use another method.
If using BusinessAttributes here is some sample code on C# that you could convert to Java:
[code] int tenantId = 1;
CfgEnumeratorQuery cfgEnumQuery = new CfgEnumeratorQuery();
cfgEnumQuery.TenantDbid = tenantId;
cfgEnumQuery.Name = "DispositionCode"; //Name of BusinessAttribute
CfgEnumerator cfgEnumerator = confService.RetrieveObject<CfgEnumerator>(cfgEnumQuery);
if (cfgEnumerator != null)
{
CfgEnumeratorValueQuery cfgEnumValueQuery = new CfgEnumeratorValueQuery(confService);
cfgEnumValueQuery.EnumeratorDbid = cfgEnumerator.DBID;
cfgEnumValueQuery.TenantDbid = tenantId;
var res = cfgEnumValueQuery.Execute();
foreach (CfgEnumeratorValue ba in res)
{
log.Debug("Name: " + ba.Name + " DisplayName: " + ba.DisplayName + " State: " + ba.State);
}
}[/code]