How to retrieve GSW_APPLICATION_ID

Hi,

how can I retrieve GSW_APPLICATION_ID which is OCS server id in cfg_db without doing some fancy leg work? I refuse to believe that there is no simple way to determine this id. I noticed that without defining this ID, nothing, and I do mean nothing, gets passed to ocs from the agent.

Thanks a bunch!
OCS products are fun…if you have nothing better to do…

Outbound Reporting,

as soon as the agent logs in and/or when a campaign is started, OCS sends to the agent desktop the event CampaignStarted with the key GSW_APPLICATION_ID.. take a look at the Outbound Contact Reference Manual.

Dim myUserDataList As New CTKVList
Dim myUserDataPair As New CTKVPair

Set myUserDataList = EventInfo.UserData
If myUserDataList.GetCount >= 1 Then
For i = 0 To myUserDataList.GetCount
Set myUserDataPair = myUserDataList.Get(i)

            Select Case myUserDataPair.Key
                Case "GSW_CAMPAIGN_NAME"
                    Campaign_Name = myUserDataPair.StringValue
                Case "GSW_APPLICATION_ID"
                    AppId = myUserDataPair.NumValue
                Case "GSW_RECORD_HANDLE"
                    Record_Handle = myUserDataPair.NumValue
                'And so on for all the data you may need
           end Select
    next
end if

Regards

3 Likes