ellil | 2022-02-15 02:43:50 UTC | #1
Application uses ClientID/Secret to interact with Genesys API.
when i call the below endpoint return id and queryState. api/v2/workforcemanagement/adherence/historical { "id": "7f6fca8f-7670-xxxx-xxxx-49fb939db4bb", "queryState": "Processing" }
is there any endpoint(like Async Job) to check further status of above query ?
I have followed the below thread option from developer portal which is working for userid subscription (v2.users.{id}.workforcemanagement.historicaladherencequery) and not for ClientID
https://developer.genesys.cloud/forum/t/how-to-get-historical-adherence-results/7749
anon28168572 | 2022-02-15 14:48:13 UTC | #2
You might consider using EventBridge to ingest the notifications and feed those to an AWS Lambda for processing.
https://developer.genesys.cloud/api/rest/v2/notifications/available_topics
v2.users.{id}.workforcemanagement.historicaladherencequery is available for subscription with the EventBridge.
Here is information on the EventBridge. https://help.mypurecloud.com/articles/about-the-amazon-eventbridge-integration/
brian.trezise | 2022-02-15 16:08:48 UTC | #3
Hi ellil - Unfortunately there is not currently a way to get the job status of a historical adherence query via the API, only via the notification subscription. To request an endpoint to be added I would add your vote to this Idea at the Genesys Ideas Portal.
As far as the client ID not working in that subscription, that doesn't sound right. The OAuth Client ID should stand in for the user ID for that topic. If that isn't working then I would refer you to support to investigate further (Or alternately, the event bridge mentioned by Shane is a viable pattern)
system | 2022-03-18 16:09:34 UTC | #4
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: 13580