Legacy Dev Forum Posts

 View Only

Sign Up

WFM Schedule does not includes grayed-out agent on api response

  • 1.  WFM Schedule does not includes grayed-out agent on api response

    Posted 06-05-2025 18:17

    Raynel_Gusarem | 2020-04-22 03:44:40 UTC | #1

    Hi,

    Using this api gives me error:

    /api/v2/workforcemanagement/managementunits/254a9819-cba8-4769-9c06-ccaaebfd9087/agentschedules/search?forceAsync=false&forceDownloadService=false

    body:

    { "userIds": [ "363444b9-0654-4b23-855d-30264d8452b7" ], "startDate": "2020-03-10T00:00:00", "endDate": "2020-03-17T00:00:00" }

    error:

    { "message": "The requested management unit was not found", "code": "wfm.management.unit.not.found", "status": 404 }

    Any idea what causes this?

    So, in the mean time, I used this api with same body and it works:

    /api/v2/workforcemanagement/managementunits/254a9819-cba8-4769-9c06-ccaaebfd9087/schedules/search

    But I have problem on getting user schedules even though it was already published before. The api response does not includes for those grayed-out agents. One reason the agent it is grayed-out is, for example, I re-assign the agent to other Management Unit as a test case. As the PureCloud WFM Schedule UI allows re-assigning to other management unit, I am hoping the api response would include it because it still displayed on the WFM Schedule UI and/or was already published. We want those data also for historical purpose.

    Any reason about this? Do you have other way to include these grayed-out agents on api response?

    Thank you so much for your help.

    Regards, Raynel


    system | 2020-05-23 03:44:43 UTC | #2

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