web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / converting array date ...
Power Automate
Unanswered

converting array date in 'Apply to each' loop

(0) ShareShare
ReportReport
Posted on by

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

 

jmaster911_0-1639678864436.png

jmaster911_1-1639679043899.png

 

 

Categories:
I have the same question (0)
  • mahoneypat Profile Picture
    1,720 on at

    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

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard