web
You’re offline. This is a read only version of the page.
close
Skip to main content
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:
I have the same question (0)
  • Geeks_D Profile Picture
    1,169 on at
    Re: JSON output Apply to each help

    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
    Re: JSON output Apply to each help

    @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

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard