Can’t Switch Page When Using Genesys API for Task Management Work Item Job Results

I am pulling data for Work Bins and Work Items from the get_taskmanagement_workitems_query_job Genesys API. For most Genesys API calls, I can select a page by inputting a page size and cursor. This allows me to pull all the data I need from each page of the results. For example, using the Python SDK for the Conversation API, I can input a page size and cursor as seen below:

“api_response = api_instance.get_analytics_conversations_details_job_results(job_id, cursor=cursor, page_size=page_size)”

However, for the Work Items Query Job, there is no option to input a cursor or page size. I am unable to select which page I want to pull data from. Therefore, I cannot use this API currently. Is there another way to select a page of the results for this API, or does Genesys plan to add these inputs in the future for this API call? Without those inputs, I am not currently able to pull all the data available through this API call. The Python SDK showing no option for cursor or page size is below:

“api_response = api_instance.get_taskmanagement_workitems_query_job_results(job_id)”

@Nick_Argeson

Looking at the docs for this api POST /api/v2/taskmanagement/workbins/query it looks that this api uses a parameter called after to achieve the functionality you mentioned.

Regards,
Declan

The API -
/api/v2/taskmanagement/workitems/query/jobs/{jobId}/results does not have an after or cursor parameter.

@Nick_Argeson

I am not familiar with the usage of this api but I do know of a preview api that might be suitable. POST /api/v2/taskmanagement/workitems/query should get you the data you need.

If you would prefer not to use a preview api, I can ask the api team if there is a suitable public api.

Regards,
Declan

Is there any plan to add an input for cursor or page number? We are experiencing the same pain point and looking for a reasonable solution. Or do we need iterate through all 3 steps for creating the job, getting results status, viewing results for total page count, and then submit new job for each subsequent page that needs retrieved? Then iterating through check status and get results? Any advice? Thank you

Yea, thats what we had to end up doing.

Thank you for the confirmation. Since you have went through this process, are there any other tips or advice I can share with my team? We are just started to explore. Thank you!

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