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 / 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
    302 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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard