web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Merge all outputs from...
Power Automate
Unanswered

Merge all outputs from For each loop

(0) ShareShare
ReportReport
Posted on by 2

Hello Power Users

Need help in merging all outputs from for each loop. I have a flow where I get 1000+ outputs and I want to merge them as a single CSV or Html file. Also this data is from cost management rest api.

The data would be like this 

Rows: 

56,

20221209,

"Xyz",

"Abc",

"Xyz",

"USD"

]

 

This Rows doesn't have any headers so it's difficult to get 1000 of Rows in 1 CSV, Also the Json is having columns where the name and value is given separately before this Rows value. Any help is appreciated

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @Narendra3327 

     

    Maybe you can use append to array variable for this.

    Initialize an array variable outside the loop and inside use append to array.

    Then outside the array use create csv table or html action and pass that array variable in it.

  • Narendra3327 Profile Picture
    2 on at

    Hello Sundeep 

    I got a error like this 

    Narendra3327_0-1671174166796.png

    And my workflow is like this 

    Narendra3327_1-1671174235981.png

     

  • Sundeep_Malik Profile Picture
    6,484 on at

    @Narendra3327 

     

    Probably do something like this:

    Sundeep_Malik_0-1671210838039.png

     

    In columns do custom.

    On Left side give column Name and on right side write item() in expressions.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 224 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 181 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard