why does this setting return null for wrapUpCode when querying analytics detail data for inbound message conversations? i am building a reporting dashboard using the geneshys cloud analytics api to track agent performance specifically for our digital flow channels. i have configured the inbound message flow in architect to require a wrap-up code selection before the conversation can be closed, using the standard setParticipantAttributes action to push the code into the conversation metadata. however, when i call the endpoint /api/v2/analytics/conversations/details/query with the appropriate time range and view parameters, the returned json payload consistently shows wrapUpCode as null for all closed message interactions. i have verified that the data exists in the ui by checking individual conversation history, where the wrap-up code is clearly visible and correctly mapped. here is a snippet of the request body i am using:
{
"timeRangeStart": "2023-10-01T00:00:00.000Z",
"timeRangeEnd": "2023-10-01T23:59:59.000Z",
"viewId": "conversation",
"groupings": [
{
"type": "value",
"id": "conversationId"
}
],
"select": [
"conversationId",
"wrapUpCode",
"status",
"channelType"
]
}
the response object for a specific conversationId looks like this:
{
"conversationId": "abc-123-def",
"wrapUpCode": null,
"status": "closed",
"channelType": "webchat"
}
i am not seeing any http errors, the status code is 200, and other fields like status and channelType are populated correctly. i have tried adjusting the timeRangeEnd to ensure the data has fully replicated, but the null value persists. is this a known limitation with how the analytics api handles structured message metadata, or is there a specific expression or data action mapping i am missing in the architect flow to ensure the wrap-up code is exposed to the analytics layer? any insights on the correct way to retrieve this data would be appreciated.