Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  get_routing_queue() Does Not Return CGA Rules

    Posted 3 hours ago

    Unlike the /api/v2/routing/queues/{queueId} endpoint in API Explorer, get_routing_queue() in the Python SDK does not return CGA rules. We are looking to update Conditional Group Activation rules programmatically by first getting the queue object and then PUTting it back with changes.

    Is there something else in the SDK that I should be using instead?


    #PlatformSDK

    ------------------------------
    Warren Smith
    ATB Financial
    ------------------------------


  • 2.  RE: get_routing_queue() Does Not Return CGA Rules

    Posted 2 hours ago

    Hello,

    I just did a test with the Python SDK calling get_routing_queue() and I do receive conditional group activation information back -> api_response.conditional_group_activation

    for rules (it is a List of ConditionalGroupActivationRule) - api_response.conditional_group_activation.rules

    What version of the SDK are you using? Or am I missing something?

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------



  • 3.  RE: get_routing_queue() Does Not Return CGA Rules

    Posted 2 hours ago

    Thank you for checking, but I'm still not seeing anything.



    ------------------------------
    Warren Smith
    ATB Financial
    ------------------------------



  • 4.  RE: get_routing_queue() Does Not Return CGA Rules

    Posted an hour ago

    You are using version 225.0.0 of the Platform API Client SDK for Python. The conditional_group_activation property in the Queue model was not available at that time (was not yet released when version 225.0.0 was built).

    The latest version is 256.0.0

    As a side note, when you print the API Response in the SDK, it is not the raw HTTP JSON Response. It is the deserialized HTTP JSON Response - i.e. deserialized into the Queue model in the case of get_routing_queue. As the conditional_group_activation property was not yet present in the Queue model (in version 225.0.0), it doesn't show up when you print your API Response.

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------



  • 5.  RE: get_routing_queue() Does Not Return CGA Rules

    Posted 3 minutes ago

    Awesome. Thanks Jerome!



    ------------------------------
    Warren Smith
    ATB Financial
    ------------------------------