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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate - @Par...
Power Automate
Answered

Power Automate - @Parse_JSON is type of Object The result value must be a valid array.

(1) ShareShare
ReportReport
Posted on by 33
Hi Community,
 
I really need to resolve this issue, but I've been unsuccessful so far and really hope someone will be able to help!  I created a Flow that makes an HTTP GET request to retrieve all IT tickets with a priority of 4 from another system. I managed to create the request and parse the JSON, but now I'm stuck. Next, I want to use the Select action to get properties for each ticket and then send an email for each ticket. However, I keep getting this error and have no idea what to do next:
 
ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON')' is of type 'Object'. The result must be a valid array.
 
This is what the Flow is looks like:
Categories:
I have the same question (0)
  • Verified answer
    Kameshm05 Profile Picture
    310 Moderator on at
    Hi   ,

    You got an output from the HTTP as object type, but the apply to each only accepts the array as input. From your concern you need to get and apply the loop for tickets. So please use this expression in the Apply to each input. Please reply if it not works
     
    body('Parse_JSON')?['tickets']
    Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard