Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  How to fill in and use body section for Data Action request?

    Posted 05-13-2020 04:38
    No replies, thread closed.
    If I have a Web Services Data Action that needs to include content in the body of the request rather than just in the URL itself, how do I actually do that within the Data Action so that it is populated with information that comes in via an input?  Would I be right in thinking you can't do this using the Simple contract setup but need to manually do this in JSON?
    #Ask Me Anything (AMA)
    #ArchitectureandDesign
    #Integrations

    ------------------------------
    Vaun McCarthy
    ------------------------------


  • 2.  RE: How to fill in and use body section for Data Action request?

    Posted 05-13-2020 09:03
    No replies, thread closed.
    Hi Vaun,

    You may be confusing the request type/method and how data is formatted in the request based on it.

    If the type is GET, you would use a query string, which is appended to the URL.

    If the type is POST, the properties you define in the contract are sent in the request body by default. You can further manipulate how this data is formatted and sent if you need to (sometimes you do), but most of the time you don't have to.

    It sounds like you have an API endpoint you must POST data to.

    Thanks,

    ------------------------------
    Daniel McLeod
    Qsect LLC
    ------------------------------



  • 3.  RE: How to fill in and use body section for Data Action request?

    Posted 05-13-2020 16:18
    No replies, thread closed.
    Thanks Daniel yes my mind went blank but absolutely it's just a GET vs POST thing.  So all good now.

    ------------------------------
    Vaun McCarthy
    NTT New Zealand Limited
    ------------------------------



  • 4.  RE: How to fill in and use body section for Data Action request?

    Posted 05-13-2020 18:32
    No replies, thread closed.
    You're welcome! I'm glad you got it figured out.

    ------------------------------
    Daniel McLeod
    Qsect LLC
    ------------------------------