Thank you it is worked for me after i matched the output contract to unflattened json response. I am just thinking about the next steps how can i access this rows object from the architect ?
Computer Generated Solutions, Inc.
Original Message:
Sent: 07-30-2024 18:38
From: Anton Vroon
Subject: Read the output from json response to output variables in Data action contract.
Hi Karthik
That looks like the flattened results, when testing the data action untick flatten results, the base raw results is what you want to build your output contract around not the flattened results.
------------------------------
Anton Vroon
Original Message:
Sent: 07-30-2024 11:21
From: Karthik Ageer
Subject: Read the output from json response to output variables in Data action contract.
Hi All,
We have a table in Google BigQuery that contains a list of orders. I am working on fetching the list of orders and their attributes for a particular customer using Data action. Since one customer can have multiple orders, the API will return multiple rows.
I am able to make the API request using a Data Action and retrieve the list of order IDs for a particular customer. However, I am unable to parse the JSON response and assigning it to an output variable/contract.
Can you please guide me on this.
{
"rows.f.v": [
[
"kageer@cgsinc.com",
"112335",
"2024-04-15",
"Pending",
"Visa Card ending 1234",
"2S100023546785",
"Rodan Fields"
],
[
"kageer@cgsinc.com",
"657845",
"2024-03-15",
"Shipped",
"Visa Card ending 1234",
"2S100023546785",
"Rodan Fields"
],
[
"kageer@cgsinc.com",
"566542",
"2024-03-25",
"Shipped",
"Visa Card ending 1234",
"2S100023546785",
"Rodan Fields"
]
]
}
#API/Integrations
#Implementation
------------------------------
Karthik Ageer
Computer Generated Solutions, Inc.
------------------------------