Hello,
I’m trying to use the historical adherence endpoint to pull historical adherence data for all agents in my org. I’m hitting a bit of a snag, in that I can’t seem to get the Notifications piece of this puzzle working.
I am debugging this using the Purecloud Notification Tester, and Postman for REST request debugging. Right now, I am trying:
- Subscribe to historical adherence query notifications for a single user. My topic looks like:
v2.users.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.workforcemanagement.historicaladherencequery
where the x’d out string is an agent User ID. - POST to the historical adherence query endpoint for the Management Unit which contains the above user:
POST https://api.mypurecloud.com/api/v2/workforcemanagement/managementunits/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy/historicaladherencequery
body:
{
"startDate": "2020-02-10T00:00:00.000Z",
"endDate": "2020-02-11T00:00:00.000Z",
"userIds": ["4ac416bd----********"],
"timeZone": "America/Los_Angeles",
"includeExceptions": true
}
When I check the Notification Tester log, I only see Heartbeat events. like below:
From the documentation, it sounds like I should eventually see a notification with a download url. Is anyone able to tell me if I’m doing something obviously wrong here? I’m happy to provide more information here if needed.
in addition I can run similar query quickly through the PureCloud UI,my user id like:
c8e37328-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Thanks in advance