Dear Automators!
I'm in the process of building a power flow that sync all spn's and applications into a SharePoint list for automated review/attestation.
I'm recieving the following error when the test is executed:
The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON_-_ServicePrincipals')?['body']?['value']' is of type 'Null'. The result must be a valid array.
I even added the "Null" value in the schema to support null values besides strings - see below screendump:
Anyone else experienced this before?
Best regards,
Roko
Hi @Anonymous ,
Please consider to put your output from parse Json in to a "Initialize a variable" action to format it into a valid array.
Or refer to below function to surround the outputs to format it directly:
Reference guide for expression functions - Azure Logic Apps | Microsoft Learn
Community Support Team _ Wenjuan Zou
If this post helps, then please consider Accept it as the solution to help the other members find it.
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional