" /> How to get Agent Wraup Codes using Genesys Java PSDK version 8.5 - Genesys CTI User Forum

Author Topic: How to get Agent Wraup Codes using Genesys Java PSDK version 8.5  (Read 1830 times)

Offline ichatterjee

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Advertisement
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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: How to get Agent Wraup Codes using Genesys Java PSDK version 8.5
« Reply #1 on: January 12, 2018, 01:34:39 PM »
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

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: How to get Agent Wraup Codes using Genesys Java PSDK version 8.5
« Reply #2 on: January 16, 2018, 12:25:50 PM »
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]