anon65933903 | 2020-02-03 15:42:50 UTC | #1
Hi,
I am using analytics API jobs API to request conversations details as below:
- Build query and post the job:
apiresultjobid = analyticsapi.postanalyticsconversationsdetailsjobs(query).tojson()
Request JSON looks like below: {'conversationfilters': None, 'evaluationfilters': None, 'interval': '2020-01-31T09:25:56/2020-02-03T09:25:56', 'limit': None, 'mediaendpointstatfilters': None, 'order': None, 'orderby': None, 'segmentfilters': None, 'startofdayintervalmatching': None, 'surveyfilters': None}
- Check the status of the job:
apiresultjobidstatus = analyticsapi.getanalyticsconversationsdetailsjob(jID).to_json()
Response JSON looks below: apiresultjobidstatus: {"state": "FULFILLED", "errormessage": null, "expirati ondate": "2020-03-05T00:00:00+00:00", "submissiondate": "2020-02-03T15:09:44.2 28000+00:00", "completiondate": null} jRes: {'state': 'FULFILLED', 'errormessage': None, 'expirationdate': '2020-03- 05T00:00:00+00:00', 'submissiondate': '2020-02-03T15:09:44.228000+00:00', 'comp letion_date': None}
- Get the result of this job:
apiResult = analyticsapi.getanalyticsconversationsdetailsjobresults('22824d0d-015e-424e-99e4-373721018bbb').to_json()
Reponse JSON is below: {"conversations": null, "cursor": null}
Why am I getting no data returned for this job?
If I run use the same time period interval and use postanalyticsconversationsdetailsquery API call, I am getting the data back.
Is there something wrong in the request JSON I am passing to run the job?
Thanks.
tim.smith | 2020-02-04 19:52:14 UTC | #2
Either there is no data that matches your query or there's an issue with the analytics service. If you're sure that your query should have results, please open a case with PureCloud Care to investigate as customer-specific data cannot be investigated via the forum.
system | 2020-03-06 19:52:19 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 7057