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 / JSON output Apply to e...
Power Automate
Unanswered

JSON output Apply to each help

(0) ShareShare
ReportReport
Posted on by 38

Hi I have a flow where Chat GPT extracts fields from a PDF and outputs them in JSON to be added to an excel table. This is the section of the flow in question.

BenConway_0-1701987250699.png

With some PDFs it extract multiple rows and so the output is:

[

{},

{},

{},

}

How do I use this in an Apply to each loop so that I can do the necessary data manipulation and input each row into excel?

 

Thanks for your help ahead!

 

Categories:
  • Geeks_D Profile Picture
    1,169 on at

    Use a select function to get each record from the Parse JSON body 
    Then use an apply to each for the body of the select to input the records in your excel 

     

     

  • Henderson87 Profile Picture
    83 on at

    @BenConway 

    You should be able to do the following. Which really just helps power automate understand everything is an array.

     

    1. initialize array variable (leave contents blank)
    2. Append to array variable(JSON contents)
    3. Apply to each on the variable
    4. You can then use the Items() function to sort through the JSON.

    Henderson87_0-1701989499872.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard