Historical Adherence - Notifications Service Help Request v2.users.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.workforcemanagement.historicaladherencequery

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:

  1. 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.
  2. 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

I'm guessing you're using the wrong ID in the topic. See this post: https://developer.mypurecloud.com/forum/t/problems-getting-historical-adherence/6622/8?u=tim.smith

o....
got it,thanks

hi , tim

I have other questiton,
can get data in purecloud site


but notification return download url don't have any data

api query parameter same as purecloud site

If you are having issues with the specific data being returned, please open a case with Genesys Cloud Care to investigate further.

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