I am currently refining our Terraform deployment scripts to include automated validation of reporting configurations. The specific requirement is to verify that wrap-up codes are correctly populated in the analytics detail queries for quality assurance purposes.
We have observed that the wrapUpCode field returns null values in the response payload, despite the interactions being properly wrapped up in the platform. This is occurring when querying the /api/v2/analytics/details endpoint.
The query structure is as follows:
{
"groupBy": [
{
"type": "entity",
"entityName": "interaction"
}
],
"select": [
{
"name": "wrapUpCode"
}
],
"timeRange": {
"from": "2023-10-01T00:00:00Z",
"to": "2023-10-31T23:59:59Z"
}
}
The response consistently returns null for the wrapUpCode field. This is unexpected, given that the interactions are confirmed to have valid wrap-up codes assigned.
We have verified that the query parameters are correct and that the API credentials have the necessary permissions. The issue persists across multiple test runs.
Is this a known limitation of the analytics detail queries? Or is there a specific configuration required to ensure that wrap-up codes are included in the response?
Any insights into this matter would be greatly appreciated.