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

Offline ichatterjee

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
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: 6367
  • Karma: 56332
Re: How to get Agent Wraup Codes using Genesys Java PSDK version 8.5
« Reply #1 on: January 12, 2018, 10: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

  • Jr. Member
  • **
  • Posts: 96
  • Karma: 8
Re: How to get Agent Wraup Codes using Genesys Java PSDK version 8.5
« Reply #2 on: January 16, 2018, 09: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: [Select]
                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);
                    }
                }