When using the historical adherence API /api/v2/workforcemanagement/adherence/historical, it always comes back with querystatus=processing. How do you check this status for completion so you can download the report?
Hello,
I think this post might answer your question: How to get Historical Adherence results
From what I read in this post and this other one, you have to use the same user account to perform the Notification subscription and the Historical Adherence request.
I mean that you have to authenticate with a user account/context, and use that same authentication to subscribe for the notification and submit the Historical Adherence API request.
Regards,
Hi Robert,
To build on what @Jerome.Saint-Marc posted we also have a tutorial that demonstrates this here. The code is written in Java.
Our product manager mentioned this morning and we are going to be chatting with our WEM team to find out why they did not provide a GET endpoint to check the status of a submitted job. That is usually our standard pattern for doing this type of report submission type endpoints.
Thanks,
John Carnell
Manager, Developer Engagement
Hello,
Here is the link to the tutorial that John was referring to in the previous post: Retrieving Notifications from a Historical Adherence Query
Regards,
John,
Any word from WEM team on this? Still not getting results as expected on the call.
As documented on this route,
POST /api/v2/workforcemanagement/adherence/historical
Historical adherence results will only ever come via websocket notification, never directly on the http call. Were you able to follow the tutorial @Jerome.Saint-Marcl linked above? If you are following the tutorial, can you share the code where you are subscribing to and handling the notification?
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.