" /> RecordProcessed question - Genesys CTI User Forum

Author Topic: RecordProcessed question  (Read 2842 times)

Vic

  • Guest
RecordProcessed question
« on: January 01, 1970, 12:00:00 AM »
Advertisement
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

Rory

  • Guest
RecordProcessed question
« Reply #1 on: January 01, 1970, 12:00:00 AM »
  • Best Answer
  • 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