contact center data

Unanswered Question
Mar 4th, 2010
User Badges:

Hello all

i want that agents to see which number the customer dialed before or with which agent he talked to ? i want to make database integration.Agents must see these data on the agent desktop explorer.How can i grab that data from contact center ? By default what kind of database ccx use ? For example someone talked to one agent and he called again,the new agent must see data abaut him before.

thank you

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Aaron Harrison Thu, 03/04/2010 - 01:58
User Badges:
  • Super Bronze, 10000 points or more
  • Community Spotlight Award,

    Member's Choice, May 2015


All the historical data is written to a database called db_cra that is replicated between the UCCX servers. The DB definition is here:

You would have to look into this database, find a previous call from that customer (identified by calling number, or account number if you have scripts that store that sort of information) which would be in the 'ContactCallDetail' table, find the agent (in the 'Resource' table) that handled the call by checking the 'AgentConnectionDetail' table.

This example would retrieve the last 10 calls made from cust with the account number 1234999001 but you could easily change it to match the calling number in the CCD table.

select top 10
CASE disposition
WHEN 1 THEN 'Abandoned'
WHEN 2 THEN 'Answered'
WHEN 3 THEN 'Dequeued'
WHEN 4 THEN 'Handled by System'
WHEN 5 THEN 'Sent to another queue'
ELSE 'Unknown'
END as disposition
from db_cra.dbo.contactcalldetail AS ccd
LEFT OUTER join agentconnectiondetail AS acd 
on (ccd.sessionid = acd.sessionid and ccd.sessionseqnum = acd.sessionseqnum)
LEFT OUTER join contactqueuedetail AS cqd 
on (ccd.sessionid = cqd.sessionid and ccd.sessionseqnum = cqd.sessionseqnum)
where ccd.callerentereddigits=1234999001
order by ccd.startdatetime desc



Please rate helpful posts...

dark326758 Thu, 03/04/2010 - 06:25
User Badges:


For example my contact center ip is and ( PUB and SUB ) how can i collect that data and reflect to agent desktop web browser ?

Aaron Harrison Thu, 03/04/2010 - 06:33
User Badges:
  • Super Bronze, 10000 points or more
  • Community Spotlight Award,

    Member's Choice, May 2015


I did an example for a customer a while back where I wrote a small ASP page which pulled the data from UCCX using the query above.

I then used a 'Set enterprise data' step to push the caller record to the Agent software, which had a workflow configured to pull back a webpage using the info from Enterprise Data as a parameter. This displayed the info about last calls from the query in a basic table.




This Discussion