Hello.
I am working with an organization that makes strong use of divisions to segregate different federations in the same environment. Given the ID of a specific conversation, I need to get the divisions of all the objects (e.g., agents, queues) involved in the calls. If I perform the following request:
GET /api/v2/conversations/<ID>
I get the JSON structure below as the response:
{
"id": ID,
"startTime": ...,
"endTime": ...,
"address": ...,
"participants": [...],
"recordingState": ...,
"divisions": [
{
"division": {...},
"entities": [...]
},
...
],
"selfUri": ...
}
The problem is that I am actually querying from a Java application, and even in the latest available SDK (i.e., version 62.0.0) the com.mypurecloud.sdk.v2.model.Conversation object does not have a getDivisions() method to extract the highlighted information. As a workaround, I am using the conversations API by calling the method getConversationWithHttpInfo() and by parsing the divisions section by hand from the raw body of the response.
Am I missing something or is there a lack in the Conversation object?
Thank you in advance for the support.
Luigi