Hello,
For an outbound campaign, there is a contactList. For each contactListId in the List my code executes conversationsApi.postAnalyticsConversationsDetailsQuery(conversationQuery)
The ConversationQuery has a SegmentFilter of type AND, which contains 2 predicates of dimension type:
- outboundContactId
- outboundCampaignId
When running the code, at a certain moment, an ApiException is thrown:
conversationsApi.postAnalyticsConversationsDetailsQuery(conversationQuery) throws an ApiException
com.mypurecloud.sdk.v2.ApiException: error
at com.mypurecloud.sdk.v2.ApiClient.interpretConnectorResponse(ApiClient.java:512)
at com.mypurecloud.sdk.v2.ApiClient.getAPIResponse(ApiClient.java:521)
at com.mypurecloud.sdk.v2.ApiClient.invoke(ApiClient.java:600)
at com.mypurecloud.sdk.v2.api.ConversationsApi.postAnalyticsConversationsDetailsQuery(ConversationsApi.java:6121)
at com.mypurecloud.sdk.v2.api.ConversationsApi.postAnalyticsConversationsDetailsQuery(ConversationsApi.java:6090)
I then tried the same method in a for loop of 500 iterations, but for just one contactId.
Just to make sure that my query was ok.
The result is the same, first responses, after a while ApiExceptions, and then again responses.
I'm wondering: how can we Iterate through a contactList (which is allowed to contain up to 1000 contacts) and get the conversation details for a contatList, without the ApiExceptions ?
Thx in advance,
Steven