Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Vic on January 01, 1970, 12:00:00 AM
-
Hi,
I was thinking about using RecordProcessed command to add data into custom data fields in a calling list.
Is it a good way to do it? Has anyone done it? Does anyone have a sample code that shows how to do it?
Thanks,
Vic
-
Hi Vic,
Had to do the recordProcessed stuff to allow agents to append call outcome details to outbound calls after hangup. So need to set CM settings: recordprocessed = no
Then basically after all other updates required went through the following code: (if you want a full extract let me know)
'now send the event to mark the record as processed to close the record
'set request type
mypair.Key = "AGENT_REQ_TYPE"
mypair.Type = CKVTypeString
mypair.StringValue = "RecordProcessed"
mylist.AddHead mypair
'set record handle
mypair.Key = "GSW_RECORD_HANDLE"
mypair.Type = CKVTypeString
mypair.StringValue = sCurrentCallHandle
mylist.AddHead mypair
'set treatment type
mypair.Key = "GSW_TREATMENT"
mypair.Type = CKVTypeString
mypair.StringValue = "RecordTreatCampaign"
mylist.AddHead mypair
'send update
Set myEventInfo.UserData = mylist
myEventInfo.ThisDN = TPos.TDN
TPos.TSendUserEvent myEventInfo