How to set interval delta in conversation-detials-query?

Hey,

currently i'm working with the Python conversation-detials-query. I have to build a delta load based an the interval field.

# create an instance of the API class
api_instance = PureCloudPlatformClientV2.ConversationsApi(apiclient)
body = PureCloudPlatformClientV2.ConversationQuery()

body.interval = '2023-01-03T00:00:00.000Z/2023-01-04T00:00:00.000Z'

How to set the body.interval variable that I have the filter on greater than?

In SQL: WHERE INTERVAL >= 2023-01-03T00:00:00.000Z

That's not how intervals work. Intervals consist of a discrete start and end timestamp. The intervals portion of the ISO 8601 specification is covered here: ISO 8601 - Wikipedia.

Because it has to be an explicit BETWEEN the two dates in the interval to achieve a 'greater than minimum threshold' equivalent you would just set your ends to a future date like;

body.interval = '2023-01-03T00:00:00.000Z/2023-01-06T00:00:00.000Z'

Is it possible to filter on conversation_start timestamp?

Something like body.conversation_start >= 2023-01-03T00:00:00.000Z?

No, please refer to the documentation to explore options for creating queries. https://developer.genesys.cloud/analyticsdatamanagement/analytics/detail/#interval

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.