I am new to the power automate scene out of six individual (though similar) automated flows that I have create on is coming up with an error and I can't figure out why. the below error is being flagged and I don't know how to fix it, or why it is just this one;
The execution of template action 'Apply_to_each_7' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_5')' is of type 'Object'. The result must be a valid array.
Any help is appreciated.
Can you share screens of your flow please , but from the error , it looks like you are trying to do an apply to each on an object and not on an array!
Hey @vdwallo ,
You can use JSON() function for converting a string to object or array, for example: In Apply to each "in the text box of select an output from previous steps " try the expression as json(outputs('compose'))
Thanks for the response, is this what you need?
This has worked on every other flow so I don't know how it could differ in just this one - that is why I am so confused.
Keep up to date with current events and community announcements in the Power Automate community.
A great place where you can stay up to date with community calls and interact with the speakers.
Check out the latest Community Blog from the community!