Hi
I am successfully executing a stored proceedure via teh data gateway within a flow. it is returning a row of data which I am also successfully parsing from JSON to an object using the "Parse JSON" action.
The "Table1" field is showing as an array of objects
{
"Table1": [
{
"key1": 123,
"key2": 456
}
]
}
However when I try to iterate this array with an "Apply to each" action, the flow errors with:
"The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON')?['ResultSets']?['Table1']' is of type 'Null'. The result must be a valid array."
I have tried array(body('Parse_JSON')?['ResultSets']?['Table1'])
I can see the data, how can I process it if flow believes "Table1" is null?