Hello,
I am trying to retrieve array from power automate flow through action respond. But when I try to load response to collection i got following error: expected object got array.
ClearCollect(colDataRows,RetrieveRecords.Run("locationA"))
My schema for response activity:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"DocumentNo": {
"type": "string"
},
"LocationCode": {
"type": "string"
},
"CityCode": {
"type": "string"
}
},
"required": [
"DocumentNo",
"LocationCode",
"CityCode"
]
}
}
Body of the request:
[
{
"DocumentNo": "240423-1257-LC4001",
"LocationCode": "LC4001",
"CityCode": ""
},
{
"DocumentNo": "240423-1257-LC4001",
"LocationCode": "LC4001",
"CityCode": ""
}
]