Re: The result of the evaluation of 'foreach' expression '@items('Apply_to_each')' is of type 'Object'. The result must be a valid array.
@KevinLaRose Depending on how large your list is. I would recommend first using the Filter Query in the Get Items action to filter out your SharePoint list. For example, in my list below—I'm filtering out items where the Status is 'Due Soon' or 'Overdue'.
Reason for using the Filter Query is so that you aren't looping through every single item in your list (unless that's a requirement). Instead, you are looping through a smaller amount of items and then performing action(s) on those items returned.

What you can also do is check the count of items returned before continuing on with your flow. This will prevent your flow from unnecessarily running the Apply to Each action if there aren't any items returned.

Hope this helps!
If I helped you solve your problem—please mark my post as a solution ✅. Consider giving me a 👍 if you liked my response!
|