Hi,
I am developing a custom solution in Eclipse using Java SDKs to get wrap up code name by passing wrap up code ID as input.
I will get the wrap up code ID using the API "/api/v2/analytics/conversations/details/query"
Then I am using the API to get wrap up code name "/api/v2/routing/wrapupcodes/{codeId}". But Java SDK of wrapup code API is giving error stating
"com.mypurecloud.sdk.v2.ApiException: error
at com.mypurecloud.sdk.v2.ApiClient.interpretConnectorResponse(ApiClient.java:705)
at com.mypurecloud.sdk.v2.ApiClient.getAPIResponse(ApiClient.java:757)
at com.mypurecloud.sdk.v2.ApiClient.invoke(ApiClient.java:868)
at com.mypurecloud.sdk.v2.api.RoutingApi.getRoutingWrapupcode(RoutingApi.java:6121)
at com.mypurecloud.sdk.v2.api.RoutingApi.getRoutingWrapupcode(RoutingApi.java:6090)
at Dollar_Tree.Dollar_Tree_1.Real_Time_Data.main(Real_Time_Data.java:406)"
The API is giving output for half of the conversation IDs and for reaming it is throwing error message like this.
I am using the code as below,
if(conversationlist.get(k).getParticipants().get(j).getSessions().get(0).getSegments().get(m).getSegmentType().toString()=="wrapup")
{
Participantfields2.add(conversationlist.get(k).getParticipants().get(j).getSessions().get(0).getSegments().get(m).getWrapUpCode());
WrapupCodeID= conversationlist.get(k).getParticipants().get(j).getSessions().get(0).getSegments().get(m).getWrapUpCode();
WrapupCode wrapupcodename = routingapi.getRoutingWrapupcode(WrapupCodeID);
Participantfields10WrapupCodeName.add(wrapupcodename.getName());
//g Setting WrapupcodeNote array
Participantfields3.add(conversationlist.get(k).getParticipants().get(j).getSessions().get(0).getSegments().get(m).getWrapUpNote());
}
Could you please help me with this issue?