Legacy Dev Forum Posts

 View Only

Sign Up

getAnalyticsConversationsDetailsJobResults not returning current results

  • 1.  getAnalyticsConversationsDetailsJobResults not returning current results

    Posted 06-05-2025 19:07

    Volker_Gronau | 2021-04-29 16:01:10 UTC | #1

    Hi, we have some strange behavior of getAnalyticsConversationsDetailsJobResults. We created some new interactions, which show up using https://developer.mypurecloud.ie/developer-tools/#/analytics-query-builder but when using your current maven platform-client-v2-122.0.0.jar and the exact same query, they do not. There we get an old, unfinished (not ended) conversation as a result - no matter how many times we try. However, if we use the returned conversation id of that query (which in reality is long finished since then) and use analyticsApi.getAnalyticsConversationDetails("8492706e-c838-4da9-a3f3-f51ef0c105e3") then it is correctly returned as ended. Rerunning getAnalyticsConversationsDetailsJobResults (with prior post, looping till it is in finished state and querying the job results), there it is returned as not finished yet (and other newer conversations in that interval are not shown as they should). Can you help? For me it looks like the command is somehow operating on an old snapshot of data, could that be? Regards, Volker Gronau


    tim.smith | 2021-04-29 16:20:00 UTC | #2

    It's important to note that an analytics conversation detail query and an analytics conversation detail job are different things even though they use the same query syntax. Queries are meant for near-real-time access to analytics data, but notably lack participant data. Jobs are meant for data warehousing and other bulk data retrieval tasks, but are subject to data availability, as documented here: https://developer.genesys.cloud/api/rest/v2/analytics/conversation_details_job#data-availability.


    Volker_Gronau | 2021-04-29 16:25:54 UTC | #3

    Ah, thank you. That explains it. Our goal was to get the conversations in - let's say - the last hour. is there another way to retrieve them?


    tim.smith | 2021-04-29 16:36:17 UTC | #4

    The Data Integration Guide covers common use cases and which approach is recommended for each. Job data availability is up to a day old, so a query is a better fit for data for the last hour. https://developer.genesys.cloud/api/rest/v2/analytics/data_integration_guide


    Volker_Gronau | 2021-04-29 17:48:17 UTC | #5

    Ok, can you help me out with which command to use for that? In my opinion they are only usable if you already know the conversation id(s). For example platform-client-v2-122.0.0.jar, AnalyticsAPI: public AnalyticsConversationWithoutAttributesMultiGetResponse getAnalyticsConversationsDetails(List<String> id);


    tim.smith | 2021-04-29 18:12:45 UTC | #6

    Volker_Gronau, post:5, topic:10771
    which command to use for that?

    First, I need to understand what you are trying to accomplish. What is your purpose for getting conversation information in this case? Which use case in the data integration guide is closest to that?


    Volker_Gronau | 2021-04-30 04:51:38 UTC | #7

    The idea is to move conversation details into a customer's data warehouse for analytics. The job-commands seem suitable for that (and I checked, today the data is there). However, the times for Genesys data-warehousing and for our process to move things over would add, so in worst case scenario the customer would only have access to 2 days old data. Also ... for development it would be much better to have access to current (query) data, so we can create interactions and let them tickle through instead of having to wait a day. My idea was to query the API in regular intervals (let's say 10 minutes or an hour) and ask for conversations that happened in between. This way we would get much more current data in small pieces. With the analytics-query-builder it is possible to create a .json and just do that - query the last 10 minutes for example. The question is: How to do that with the Java API? It only seems possible to go the job-way there. Is the command missing or did I overlook it?


    system | 2021-05-30 04:51:41 UTC | #8

    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: 10771