" /> How to populate calling list fields using Genesys Active X Desktop Toolkit - Genesys CTI User Forum

Author Topic: How to populate calling list fields using Genesys Active X Desktop Toolkit  (Read 6711 times)

Outbound Reporting

  • Guest
Advertisement
[color=green]
Good morning fellow Genesys specialists,

I am researching Genesys Outbound Server capabilities and have noticed that it is possible to populate user-defined fields in calling list using attach-data.
Can someone show me please how to do it in VB using Sample Genesys ActiveX Desktoptoolkit Phone?

Of course emailing me a sample program would work as well!  ;D
[/color]

Peter K.

  • Guest
[color=red]
Never tried it but my guess would be try to use UpdateCallCompletionStats command.
[/color]

P.S. Can you change the background of the post->Vic

Peter K.

  • Guest
In follow up to my previous post:

Outbound manual states:

The desktop can use the request RecordProcessed or UpdateCallCompletionStats to modify the values in Genesys mandatory fields and custom fields.
But I would be damned if I knew how to tell it the name of the field; all of the attributes seems to be starting with GSW_ and there is no mention of how to add a custom field! Perhaps somebody else can fill you on it.

PK

Offline Fra

  • Hero Member
  • *****
  • Posts: 856
  • Karma: -3
[quote author=Peter K. link=topic=2070.msg7114#msg7114 date=1172218766]
Outbound manual states:

The desktop can use the request RecordProcessed or UpdateCallCompletionStats to modify the values in Genesys mandatory fields and custom fields.
But I would be damned if I knew how to tell it the name of the field; all of the attributes seems to be starting with GSW_ and there is no mention of how to add a custom field! Perhaps somebody else can fill you on it.
[/quote]

? Pk, you can update the values of any field of the calling list the record belongs to; but you can not add a custom field directly from the agent desktop! The format of the calling list, that is which fields it is made of, can be set only in CME and can not be changed.
Throwing an EventUserEvent with the key GSW_AGENT_REQ_TYPE='UpdateCallCompletionStats', with the mandatory fields requested and the custom fields to be changed make OCS update the record.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Your data will be something like:

Public Sub RecordProcessedOK(rec_han As Long)

Dim myEventInfo1 As TEventInfo
Dim myListReagendaR1 As CTKVList
Dim myPairReagendaR1 As CTKVPair

Set myEventInfo1 = CreateObject("DesktopToolkitX.TEventInfo")
Set myListReagendaR1 = CreateObject("TCommObj.CTKVList")
Set myPairReagendaR1 = CreateObject("TCommObj.CTKVPair")


    myPairReagendaR1.Key = "GSW_AGENT_REQ_TYPE"
    myPairReagendaR1.Type = CKVTypeString
    myPairReagendaR1.StringValue = "RecordProcessed"
    myListReagendaR1.AddHead myPairReagendaR1

    myPairReagendaR1.Key = "GSW_APPLICATION_ID"
    myPairReagendaR1.Type = CKVTypeNum
    myPairReagendaR1.NumValue = AppId
    myListReagendaR1.AddHead myPairReagendaR1

    myPairReagendaR1.Key = "GSW_CALLING_LIST"
    myPairReagendaR1.Type = CKVTypeString
    myPairReagendaR1.StringValue = Calling_List
    myListReagendaR1.AddHead myPairReagendaR1

    myPairReagendaR1.Key = "GSW_CAMPAIGN_NAME"
    myPairReagendaR1.Type = CKVTypeString
    myPairReagendaR1.StringValue = Campaign_Name
    myListReagendaR1.AddHead myPairReagendaR1

    myPairReagendaR1.Key = "GSW_RECORD_HANDLE"
    myPairReagendaR1.Type = CKVTypeNum
    myPairReagendaR1.NumValue = Record_Handle
    myListReagendaR1.AddHead myPairReagendaR1

    myPairReagendaR1.Key = "USERFIELD_SALES_1"
    myPairReagendaR1.Type = CKVTypeString
    myPairReagendaR1.StringValue = Situacion_Llamada
    myListReagendaR1.AddHead myPairReagendaR1

Set myEventInfo1.UserData = myListReagendaR1

myEventInfo1.ThisDN = Main.TExtension1.TDN
Main.TExtension1.TSendUserEvent myEventInfo1


Set myEventInfo1 = Nothing
Set myListReagendaR1 = Nothing
Set myPairReagendaR1 = Nothing

End Sub


Regards

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
  • Karma: 18
Good morning,

to follow up on Cavagnaro's code, you will need the following to make itwork:

1. create the field in calling list table
2. create the field definition in Fields inside CME
          - make sure type is set to Custom User-Defined
          - in Annex for that field, create section default
          - under default, add new keyword: send_attributes and make it equal to the name of the field
          - Go to Formats in CME, choose Format used by your Calling List and add shortcut to the field inside

Tell us if there is a problem.