Dear Genesys Pros,
I found a previous here about how to filter CCA data using Reason code. I tried it in my lab and it does not work.
Here are the settings that I have used:
  ・AUXReason1=PairExists("AUXReason","1")
 ・AUXReason2=PairExists("AUXReason","2")
 ・AUXReason3=PairExists("AUXReason","3")
 ・AUXReason4=PairExists("AUXReason","4")
 ・AUXReason5=PairExists("AUXReason","5")
 ・AUXReason9=PairExists("AUXReason","9")
In this case I would get 0 for all of the data.
I also tried this:
 ・U_AUXReason1=PairExists(UserData,"AUXReason","1")
 ・U_AUXReason2=PairExists(UserData,"AUXReason","2")
 ・U_AUXReason3=PairExists(UserData,"AUXReason","3")
 ・U_AUXReason4=PairExists(UserData,"AUXReason","4")
 ・U_AUXReason5=PairExists(UserData,"AUXReason","5")
 ・U_AUXReason9=PairExists(UserData,"AUXReason","9") 
In this case, I would get the value of Total_Talk_Time with filter equal to Total_Talk_Time without one.
So, this is not the right one as well. 
What is going on? I can confirm the reason code in the statserver log (see below!)
Server: [09/08/06 18:44:43] Switch 'Switch_S8700_Fuk', 'EventAgentNotReady'
        ThisDN '8001'
        Agent LoginID '1702'
        This Queue '0'
        CustomerID 'Resources'
        WorkMode 'AgentAuxWork'
        Reasons
                'AUXReason'     '3'
        Extensions
                'ReasonCode'    '3'
The way I am tesitng is to issue a AuxWork with ReasonCode using Genesys Testphone.
What am I doing wrong?
Thank you very much!
[move]*******************
*The Reason(able) Girl*
*******************[/move]