
Announcements
Hi,
I'm building an object detailing each task in a planner bucket. In the example below, TaskDetails is an object. I want to format the Planner date field into something more readable and instead of inserting the date I inserted an expression (See the code view below). I'm getting an error in the loop saying "The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Iterate_through_tasks')' is of type 'Object'. The result must be a valid array."
I assume that this means the expression must be an array, any help is appreciated.
Thanks
The name of Apply to each 2 suggests this might be inside an outer Apply to each. Is that the case? Either way, since you are working with an object and not an array, you likely don't need the Apply to each.
Pat