I am working on UCCX 7.0 scripting where in I need to retrieve a unique number for the call. This unique number needs to map to the NodeID-SessionID-SeqNum of the AGent Wrap-Up Data Detail Report. I need to retrive this number in my script and write it into a custom table to be used as a primiray key in that custom table. Thus, this unique ID will link the CCDR in the standard historical reports to the custom table that I create. The custom table is being created to store some responses from the callers and will contain columns like CallID ( a unique ID), Reponse1, Response2 etc.
I tried retrieing the 'Identifier' in the GetContactInfo() step in my script assuming that this ID would be similar to the SeqNum in the NodeID-SessionID-SeqNUm of the historical reports but the 2 numbers are entirely different and hence I am unable to link the reports with the data in my custom table.
Any thoughts on how to work this through?
Here are the steps you need to use in order to retrieve the session identifier (SessionID).
1- Create two variables
a) one variable of type "Session"
b) one variable of type "long"
2- After the "Accept" step, add a "GetContactInfo" and retrieve the session with the session variable created in 1a
3- Then add a "GetSessionInfo" step and retrieve the identifier with the long variable created in 1b
4- That's it ! You got the same index as table ContactCallDetail.