I have need to get all conversations records specific to one Contact list id & all segments within it which type is "wrapup"
I.e outboundContactListId="XXX" and segmentType="wrapup"
What is diff between predicates vs clauses?
I m getting all records where segment type is not "wrapup" also. What am I missing?
Also is it possible to get only specific property in result? for example I m not interested in "metrics","mediaEndpointStats" under "sessions" node.
in SQL terminology like select only specific fields from result based on where condition.
Select A,B,C
From
Table conversation_details_tables
Where outboundContactListId="XXX" and segmentType="wrapup"
I m testing at https://developer.genesys.cloud/devapps/api-explorer
following is 2 separate payload that I have tried.
{
"segmentFilters": [
{
"clauses": [
{
"type": "and",
"predicates": [
{
"type": "dimension",
"dimension": "segmentType",
"operator": "matches",
"value": "wrapup"
},
{
"type": "dimension",
"dimension": "outboundContactListId",
"operator": "matches",
"value": "<contactlist id here>"
}
]
}
],
"type": "and"
}
],
"interval": "2024-03-05T00:00:00.000/2024-03-05T23:59:00.000",
"orderBy": "conversationEnd",
"order": "asc",
"paging": {
"pageNumber": 1
}
}
===OR
{
"segmentFilters": [
{
"predicates": [
{
"type": "dimension",
"dimension": "outboundContactListId",
"operator": "matches",
"value": "<contact list id here>"
},
{
"type": "dimension",
"dimension": "segmentType",
"operator": "matches",
"value": "wrapup"
},
{
"type": "dimension",
"dimension": "mediaType",
"operator": "matches",
"value": "voice"
}
],
"type": "and"
}
],
"interval": "2024-03-05T00:00:00.000/2024-03-05T23:59:00.000",
"orderBy": "conversationEnd",
"order": "asc",
"paging": {
"pageNumber": 1
}
}