WFM historical adherence report : 'query_state': 'Processing'

Hello,

I am invoking this api through Python SDK
post_workforcemanagement_adherence_historical

The request body data is
body = {
'startDate' : "2022-05-10T00:00:00.000Z",
'endDate' : "2022-05-11T00:00:00.000Z",
'timeZone': "Australia/Sydney",
'userIds': ["xxxxx"]
}
The response from API call is
body {'startDate': '2022-05-10T00:00:00.000Z', 'endDate': '2022-05-11T00:00:00.000Z', 'timeZone': 'Australia/Sydney', 'userIds': ['xxxx]}
adherence_data {'download_result': None,
'download_url': None,
'download_urls': [],
'id': '9e2d595e-49ca-436f-8ea3-c773fb4b73bf',
'query_state': 'Processing'}

I am not sure how to proceed from here and how to receive the data.
I am seeking for advice to know if I am missing something and what "Processing' means in the result.
Thank you.

Regards,
Hnin

1 Like

The response for a historical adherence query will always come via notification.
There is a (java) tutorial here to help with the process. We don't currently have a tutorial for other languages but the steps should be roughly the same.

Retrieving Notifications from a Historical Adherence Query

Hello @hnin
I am in the similar situation trying to get data from notifications.
Do you have a solution to this?

1 Like

Please see the link I posted above. It is a tutorial with an example implementation to demonstrate the process.

Thanks for reaching out!

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