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 Automate - Building Flows
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!

 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard