Paul_Wilson | 2020-09-04 10:23:15 UTC | #1
I know this has been asked before I have have tried all the suggestions, but I am hoping I can get confirmation of the actions I am taking. I am trying to get historical adherence data for the users on a system. They are all GC3 and have schedules.
I set up a notification channel and then added the following subscriptions
v2.users.agent1.workforcemanagement.historicaladherencequery v2.users.agent2.workforcemanagement.historicaladherencequery .....
I then ran an Post API call
URL: https://api.mypurecloud.com.au/api/v2/workforcemanagement/adherence/historical/
Body : {
"startDate": "2020-09-03T16:00:00.000Z",
"endDate": "2020-09-03T17:00:00.000Z",
"timeZone": "UTC",
"userIds": [
"Agent1",
"Agent2"
],
"includeExceptions": true
}
For which I get a 202 Header and the body says queryState: Processing.
Then Nothing no notifications and no way to check the status of the Report Job.
Please can someone help a NOOB with what I am doing wrong?
The only thing I think it maybe is the API call is in PostMan using OAUTH, and the notifcation channel is in my user handle. This has never been a problem before, but just want to check.
Thank You
anon11147534 | 2020-09-04 14:03:25 UTC | #2
Hi,
Can you confirm that you've followed everything outlined in this forum post specifically the line:
Make sure you use the userID of the account that is making the API call, not the userID of the agent you are requesting historical adherence information for
It appears that you're using the IDs of the agents and not your own userID.
Paul_Wilson | 2020-09-05 00:47:02 UTC | #3
I am using OAUTH to create the Report REquest and using a System Admin Login to run the websocket test. Perhaps that is the issue do you think? I will try and find time to confirm. Seems very strange, given the way other Web Socket Notifications work.
system | 2020-10-06 00:47:06 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: 8745