Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: Alyw on August 25, 2015, 02:57:00 PM

Title: How to retrieve EventInfo value based on the event's reference ID
Post by: Alyw on August 25, 2015, 02:57:00 PM
I sent two request statistic info and received two EventInfo as shown below:

    'EventInfo' ('2')
    message attributes:
    REQ_ID [int]    = 402
    USER_REQ_ID [int] = 0
    TM_SERVER [int] = 1440495548
    TM_LENGTH [int] = 1285
    LONG_VALUE [int] = 0
    STRING_VALUE [str] = "123"

    'EventInfo' ('2')
    message attributes:
    REQ_ID [int]    = 301
    USER_REQ_ID [int] = 0
    TM_SERVER [int] = 1440495553
    TM_LENGTH [int] = 1290
    LONG_VALUE [int] = 0
    STRING_VALUE [str] = "456"

I can retrieve the event's ReferenceID as well as the StringValue (which is the value that I want), but how can I retrieve the StringValue based on the event's ReferenceID?

Perhaps there is something similar to this:
Genesyslab.Platform.Reporting.Protocols.StatServer.Events.EventInfo eventInfo =      (Genesyslab.Platform.Reporting.Protocols.StatServer.Events.EventInfo)eventResponse;
string value = eventInfo.ReferenceID(402).StringValue; //Wrong statement, hope to find something similar to this

Title: Re: How to retrieve EventInfo value based on the event's reference ID
Post by: PeteHoyle on August 26, 2015, 01:36:48 PM
You can't, you just have to handle each EventInfo as it happens..