Thank you Anton for your response. I was able to achieve using your input.
------------------------------
Anush Shetty
SBI Shinsei Bank, Limited
------------------------------
Original Message:
Sent: 05-15-2024 21:50
From: Anton Vroon
Subject: How to save the entire output of an API in the contract?
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
Original Message:
Sent: 05-15-2024 21:34
From: Anush Shetty
Subject: How to save the entire output of an API in the contract?
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
------------------------------