Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Outbound Reporting on February 23, 2007, 07:40:44 AM
-
[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]
-
[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
-
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
-
[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.
-
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
-
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.