Hi,
I am new to Power Agent and I am having a difficult time trying to wrap my head around JSON response. I have a desktop flow which generates a custom JSON object and returns it to the Power Agent Flow. I want to display that JSON data as a response from the bot. I have created the Schema as well but I get the message saying
"The output you selected is inside a collection and needs to be looped over to be accessed. This action cannot be inside a foreach."
{
"type": "object",
"properties": {
"Table": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Customer": {
"type": "string"
},
"Name 1": {
"type": "string"
},
"Document Type": {
"type": "string"
},
"Billing Document": {
"type": "string"
},
"Arrears after net due date": {
"type": "string"
},
"Document Number": {
"type": "string"
},
"Posting Date": {
"type": "string"
},
"Amount in local currency": {
"type": "string"
},
"Description": {
"type": "string"
},
"Text": {
"type": "string"
},
"Net due date symbol": {
"type": "string"
},
"Payment date": {
"type": "string"
},
"Document Date": {
"type": "string"
}
},
"required": [
"Customer",
"Name 1",
"Document Type",
"Billing Document",
"Arrears after net due date",
"Document Number",
"Posting Date",
"Amount in local currency",
"Description",
"Text",
"Net due date symbol",
"Payment date",
"Document Date"
]
}
}
}
}
This is my JSON format. I am unable to figure this out even after reading other people's queries. Your help would be really appreciated.