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 / Issue with Getting val...
Power Automate
Answered

Issue with Getting value from Json Response

(0) ShareShare
ReportReport
Posted on by 245

Hi,

I am using an API and getting response is JSON format. I have used Parse Json to parse the response but when I am trying to get a value from response I am getting an error that 

The execution of template action 'Apply_to_each_3' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON')?['body']?['response']' is of type 'Null'. The result must be a valid array.

 

Ramiz_0-1680772477568.png

 

However this is my response from the API

 

Ramiz_1-1680772540573.png

 

Here is the flow. Can anyone help me on this?

 

Ramiz_4-1680772704342.png

 

 

Ramiz_2-1680772589272.png

 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Ramiz,

     

    I see you are using the body of the HTTP in the Content field of the Parse Json action. Can you try the outputs of the HTTP instead?

     

    Try and use the expression below instead:

    outputs('HTTP')

     

  • Ramiz Profile Picture
    245 on at

    Hi @Expiscornovus 

    Thank you for your help. It worked.

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard