- Newest
- Most votes
- Most comments
To generate a report of phone numbers and their most recent call dates in Amazon Connect, you have a few options, but you'll need to combine different approaches as there's no single metric that provides this information directly.
-
Historical Metrics Report: While the Historical Metrics report doesn't have a specific metric for the last call date, you can use the "Phone numbers" report type. This report shows all phone numbers associated with your instance. However, it won't directly give you the last call date.
-
Contact Trace Records (CTRs): CTRs provide the most comprehensive data about each contact, including phone numbers and timestamps. This is likely your best option for getting the information you need.
To use CTRs:
- Ensure CTRs are being stored in an Amazon S3 bucket.
- Use Amazon Athena to query this data directly from S3.
- Write a SQL query that selects the phone number and the maximum (most recent) timestamp for calls within the last 90 days.
-
Amazon Connect Analytics Data Lake: If you have access to the Amazon Connect Analytics data lake, you can use SQL queries to extract this information. The data lake contains various types of Connect data, including contact records, which should have the phone number and timestamp information you need.
-
Custom Solution: If the above methods don't meet your needs, you might need to create a custom solution:
- Use the GetMetricData or GetMetricDataV2 API to retrieve data about incoming contacts for each phone number.
- Store this data in a database or data warehouse.
- Run queries against this data to find the most recent call date for each number.
Remember that data retention policies may affect your ability to retrieve information older than a certain period, so ensure your Connect instance is configured to retain data for at least 90 days.
Given the complexity of this task, you may want to consult with AWS Support for guidance tailored to your specific Connect setup and requirements.
Sources
GetMetricDataV2 grouping by phone number | AWS re:Post
Downloading yearly call data from Amazon Connect | AWS re:Post
Create a custom historical metrics report in Amazon Connect - Amazon Connect
Relevant content
- AWS OFFICIALUpdated 3 years ago
