Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

The result must be a valid array.

I have a simple workflow to send out a daily email reminder for tasks that are due today from a Sharepoint Tasks list.  My Flow has this error:  The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_2')' is of type 'Object'. The result must be a valid array.


Please see screenshot of my current flow job:



Solution Sage
Solution Sage

The 'current item' in your inner Apply to each is an object, not an array.  You should be able to delete that and do you action inside the outer Apply to each.



Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about the Power Platform, follow me on Twitter or subscribe on YouTube.

@mahoneypa HoosierBI on YouTube

I'm pretty sure the innter Apply to each is there becuase it's a multivalue person column.

Helpful resources

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,264)