Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  How to save the entire output of an API in the contract?

    Posted 16 days ago

    Hi All,

    I am planing to create a data action where i want to save the entire out put in a single output contratc so that i can save it in variable in Arechitect.

    Please guide. I am using this API: /api/v2/telephony/providers/edges/phones{Phoneid}


    #Integrations

    ------------------------------
    Anush Shetty
    SBI Shinsei Bank, Limited
    ------------------------------


  • 2.  RE: How to save the entire output of an API in the contract?

    Top 25 Contributor
    Posted 16 days ago

    You can certainly grab the full output as a json string.

    Take a look at this developer forum post:

    https://developer.genesys.cloud/forum/t/unable-to-save-complete-json-output-of-an-outbound-api-in-a-output-contract-variable-campaigndata/21466

    essentially to assign the raw result to your output variable in your response template you want to use:

    "successTemplate": "{\"YourOutputVariable\": \"$esc.jsonString(${rawResult})\"}"



    ------------------------------
    Anton Vroon
    ------------------------------



Need Help finding something?

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