Connect API - How to get agent connection info for a particular contact

0

I am trying to use the AWS Connect API (using .NET) to get the same data that can be returned from the Contact Search in the Connect UI. I am able to get most of the fields by calling SearchContacts to get a list of contacts for a particular date range. I also added other fields to the user defined contact attributes and I'm calling GetContactAttributes to get those.

However, I haven't been able to return the fields AfterContactWorkStartTimestamp, AfterContactWorkEndTimestamp, and AgentConnectionAttempts.

How do I get the fields (AfterContactWorkStartTimestamp, AfterContactWorkEndTimestamp, and AgentConnectionAttempts) returned from the Connect API if I know the Contact ID and Agent ID?

1 Answer
0
Accepted Answer

Hello!

Kindly note that the SearchContacts API does not return all the information that is shown in the Contact Search console on Amazon Connect console. If we refer to the the documentation we can see that the response body does not contain the fields of fields AfterContactWorkStartTimestamp, AfterContactWorkEndTimestamp, and AgentConnectionAttempts.

You can export contact records and agent events from Amazon Connect and perform real-time analysis on contacts. As a workaround for this use-case, we can enable data streaming for the connect instance Data streaming sends data to Amazon Kinesis. Please refer to the doc here for further information about the same: https://docs.aws.amazon.com/connect/latest/adminguide/data-streaming.html

Hope this helps!

Cheers.

AWS
answered 14 days ago
profile picture
EXPERT
reviewed 14 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions