Hi Community,
I know this error is usually about needing an array in Apply to each, but in my case, my data is a dynamic object, not an array.
Here’s an example of my data:
{
"animals": {
"429defc8-5b05-4c3e-920d-0bb911a61345": {
"id": "429defc8-5b05-4c3e-920d-0bb911a61345",
"name": "camel"
},
"429defc8-5b05-4c3e-920d-0bb911a613451": {
"id": "429defc8-5b05-4c3e-920d-0bb911a613451",
"name": "elephant"
}
}
}
How can I iterate over the GUID keys (like 429defc8-5b05-4c3e-920d-0bb911a61345) and access both id and name for each animal in an Apply to each or Select action?
I want to know the correct expression to use for this scenario where my object keys are dynamic GUIDs, NOT a simple array.
I already know about the array error, but my case is different due to the dynamic object structure.
What expression should I use to get this working?
Thanks!