" /> How to retrieve GSW_APPLICATION_ID - Genesys CTI User Forum

Author Topic: How to retrieve GSW_APPLICATION_ID  (Read 3268 times)

Outbound Reporting

  • Guest
How to retrieve GSW_APPLICATION_ID
« on: February 23, 2007, 10:35:14 AM »
Advertisement
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!
[move]OCS products are fun.....................if you have nothing better to do...........[/move]

Offline Fra

  • Hero Member
  • *****
  • Posts: 856
  • Karma: -3
Re: How to retrieve GSW_APPLICATION_ID
« Reply #1 on: February 23, 2007, 01:30:05 PM »
  • Best Answer
  • [quote author=Outbound Reporting link=topic=2071.msg7118#msg7118 date=1172226914]

    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.
    [/quote]

    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.


    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7641
    • Karma: 56330
    Re: How to retrieve GSW_APPLICATION_ID
    « Reply #2 on: February 23, 2007, 05:58:48 PM »
  • Best Answer
  • 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