Legacy Dev Forum Posts

 View Only

Sign Up

Workforce Management Schedule API - Details

  • 1.  Workforce Management Schedule API - Details

    Posted 06-05-2025 18:22

    Manoj_Jaiswal | 2022-05-03 00:29:06 UTC | #1

    What is best mechanism to import Schedule of all the Users in EDW for a given business unit,.

    API Used

    URL

    POST

    /api/v2/workforcemanagement/managementunits/1E0F0F5D-51A4-47E4-99D0-567B859CA66C/agentschedules/search?forceAsync=false&forceDownloadService=false

    I see below as output in API Explorer. How to see details

    { "status": "Complete", "operationId": "37b727a4-76a9-49ba-9ad1-ae0c6ec5266b", "result": { "agentSchedules": [ { "user": { "id": "92378606-183F-436C-A2F3-15B394A893CD", "selfUri": "/api/v2/users/92378606-183F-436C-A2F3-15B394A893CD" }, "shifts": [], "fullDayTimeOffMarkers": [] } ], "businessUnitTimeZone": "PST8PDT", "publishedSchedules": [ { "id": "e2615fba-9a85-4ebc-a192-b79e8741bda4", "weekDate": "2022-03-28", "weekCount": 5, "selfUri": "/api/v2/workforcemanagement/businessunits/dff2cf85-0132-4290-af2a-6bc21aca4e7a/weeks/2022-03-28/schedules/e2615fba-9a85-4ebc-a192-b79e8741bda4" }, { "id": "57787dce-a6c5-4bc5-9354-832509a71869", "weekDate": "2022-05-02", "weekCount": 5, "selfUri": "/api/v2/workforcemanagement/businessunits/dff2cf85-0132-4290-af2a-6bc21aca4e7a/weeks/2022-05-02/schedules/57787dce-a6c5-4bc5-9354-832509a71869" } ] } }


    Langsford_Jay | 2022-05-03 13:05:39 UTC | #2

    Can I ask what the business case of storing schedules in a data warehouse? Since they are available in Genesys Cloud and since schedules can be changed at any point even after the scheduling period ends, storing in a data warehouse seems unnecessary and potentially will contain incorrect information.


    Manoj_Jaiswal | 2022-05-03 16:11:52 UTC | #3

    Data Science teams wants to create a model to predict future needs based on past call details and , wait times and availability of agents


    Manoj_Jaiswal | 2022-05-03 20:21:27 UTC | #4

    Also i am getting incomplete output when i am sending this

    { "startDate": "2022-05-02", "endDate": "2022-05-03", "userIds": [] }

    Output =====

    { "status": "Complete", "operationId": "43f87e52-d6a9-4591-82f4-33490d248a37", "result": { "agentSchedules": [], "businessUnitTimeZone": "PST8PDT", "publishedSchedules": [] } }


    brian.trezise | 2022-05-05 12:58:08 UTC | #5

    The route you're attempting to use is designed to look up the schedule for specific agents. If your desire is to export a full schedule for a business unit (or a management unit) from Genesys Cloud, the best way to do it would be to start here:

    GET /api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}. This will return a list of management units that are present on the schedule.

    Then for each management unit in the response from the above that you're interested in, you can load the agent schedules using this api: POST /api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/agentschedules/query

    Hope that helps!


    Manoj_Jaiswal | 2022-05-05 17:19:07 UTC | #6

    I will try. This is helpful


    system | 2022-06-05 17:19:38 UTC | #7

    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: 14555