Axel_Aviloff | 2024-08-02 02:54:59 UTC | #1
Hi,
I am trying to build a query for the /api/v2/speechandtextanalytics/transcripts/search endpoint and I need to know how to apply an OR condition to the filters.
Currently, my query is structured as follows:
{
"pageSize": 100,
"pageNumber": 1,
"types": [
"transcripts"
],
"returnFields": [
"conversationId",
"communicationId"
],
"query": [
{
"type": "EXACT",
"fields": [
"mediaType"
],
"value": "call"
},
{
"type": "EXACT",
"fields": [
"participants.queueId"
],
"values": [
"queueIdA",
"queueIdB"
]
},
{
"type": "EXACT",
"fields": [
"topic"
],
"value": "ODC"
},
{
"type": "DATE_RANGE",
"fields": [
"startTime"
],
"startValue": "2024-02-01T00:00:00.000-03:00",
"endValue": "2024-02-28T00:00:00.000-03:00",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ss.SSS-03:00"
}
]
}
This query is designed to retrieve all conversationId and communicationId for queues queueIdA and queueIdB that have the topic "ODC". However, I also want to include in the results all conversationId and communicationId for queues A and B, as well as those with the topic "ODC", regardless of the queue. In other words, I want an OR condition between the queue filters and the topic filter.
Is it possible to achieve this with the Genesys Cloud API? If so, how can I structure the query to get the desired results?
Thanks!
system | 2024-09-01 02:54:16 UTC | #2
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 27540