Legacy Dev Forum Posts

 View Only

Sign Up

WFM Adherence Report Data; Routing Status data structure different from documentation

  • 1.  WFM Adherence Report Data; Routing Status data structure different from documentation

    Posted 06-05-2025 18:21

    Orion_Rapp | 2022-03-13 20:15:19 UTC | #1

    We are using the following API to generate WFM Adherence report data:

    /api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery

    As described in the link, we should expect routingStatus to be an object with 3 properties.

    The latest version of the SDK also has a class WfmHistorialAdherenceResultWrapper and if you drill down to RoutingStatus, it’s a class with three properties.

    However, we consistently see something different from the API (line 30):

    As you can see, routingStatus is a string and not an object. (full report object attached)

    This presented us with a problem because we couldn’t serialize the JSON string into the WfmHistorialAdherenceResultWrapper class in the SDK.

    Why does the data differ from the documentation and SDK?

    Thank you, Orion


    tim.smith | 2022-03-14 16:53:44 UTC | #2

    The API's documented contract, which is used to generate the SDKs, appears to have drifted from the actual function of the API resource. Please open a case with Genesys Cloud Care to report this as a bug with the API resource. Care will have an easier time routing the report if you focus on the API resource documentation instead of the SDK. Once the API resource is fixed, the SDKs will be updated automatically.


    brian.trezise | 2022-03-15 14:17:40 UTC | #4

    Just got a fix for this merged, though it'll be a week or two before it will be available. We're internally adjusting our procedures to prevent similar bugs from occurring going forward.

    Thanks for reaching out!


    Orion_Rapp | 2022-03-15 15:47:55 UTC | #5

    Thank you for addressing this.

    Orion


    system | 2022-04-15 15:48:54 UTC | #6

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