Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  Web service data action -- collection nested in input contract

    Posted 03-10-2020 16:34
    Edited by AdAM Rubin 03-12-2020 12:43
    Hello --

    I'm trying to configure the input contract for a web services data action. The payload I need to pass to our API looks like:

    {
      "key": "value",
      "key2": "value2",
    "key3": "value3",
    "collectionKey": [ { "k1": "val", "k2": "val2", }, {
    "k1": "val3",
    "k2": "val4",
    },
    ] }

    When configuring input contracts, it doesn't appear as though you can include a nested collection within an object. Am I missing something? Is there a workaround?

    Thanks much,
    Adam
    #Integrations

    ------------------------------
    Adam Rubin
    Humana Inc.
    ------------------------------


  • 2.  RE: Web service data action -- collection nested in input contract

    Posted 03-17-2020 20:50
    Hi Adam, its just not possible. You would need to flatten the input.

    This structure is OK for responses but not requests

    ------------------------------
    Mike Hardie
    CALLSCAN AUSTRALIA PTY. LTD.
    ------------------------------



  • 3.  RE: Web service data action -- collection nested in input contract

    Posted 11-15-2021 09:05
    Hi Mike ... I have a similar issue, however the API we are integrating to is with a partner who are not going to consider flattening ... to your knowledge has anything changed in the last 18 months ?  Other than putting a "widget" in the middle, is there any other way to achieve ?

    Thanks

    Craig

    ------------------------------
    Craig Golby
    BNP Paribas Personal Finance UK
    ------------------------------



  • 4.  RE: Web service data action -- collection nested in input contract

    Posted 11-15-2021 16:35
    I am not aware of any changes.

    Unless someone has a better idea then something in between may be the answer



    ------------------------------
    Mike Hardie
    CALLSCAN AUSTRALIA PTY. LTD.
    ------------------------------



  • 5.  RE: Web service data action -- collection nested in input contract

    Posted 11-15-2021 09:02
    Hi Adam ... hitting the same challenge ... did you find a solution, or did you end up flattening ??

    ------------------------------
    Craig Golby
    BNP Paribas Personal Finance UK
    ------------------------------



  • 6.  RE: Web service data action -- collection nested in input contract

    Posted 11-19-2021 12:43
    Hi guys,

    Our development team had similar issues.
    Sometimes another issues like to integrate with API which does not support JSON, REST or have very specific security implementation Genesys Cloud does not support. To avoid such issues we implement own middle layer based on Azure Functions or AWS Lambda. With such approach we can easily create nice structure for Genesys Cloud Data Actions integration.

    ------------------------------
    Taras Buha
    taras@noralogix.com
    www.noralogix.com
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources