Hi, I'm fairly new to Power Automate. I'm trying to add data that I pull from an API call to a SharePoint Online List. I'm able to pull the data in the original API request; However, when I try to add the parsed output from the API call, I get a Null Array Error. Here is the full message:
ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON')?['body']?['audits']' is of type 'Null'. The result must be a valid array.

Here is a sample of the payload that I used to generate the JSON schema:
{
"body": {
"count": 1000,
"total": 10081,
"audits": [
{
"audit_id": "audit_123",
"modified_at": "2017-05-30T22:24:01.154Z",
"template_id": "template_a"
},
{
"audit_id": "audit_345",
"modified_at": "2017-05-31T00:10:05.754Z",
"template_id": "template_b"
}
]
}
}
Any help will be greatly appreciated.
Thanks!