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 / Add multiple rows to e...
Power Automate
Suggested Answer

Add multiple rows to excel table

(1) ShareShare
ReportReport
Posted on by 32
Hi All
 
I have a flow that does the following
 
1) Run a query against a Power BI dataset
2)Parse JSON
3) Initialize variavble - This is where i am stuck
4) Add a row into a table
 
I think the Type here needs to be Object but when i start adding variables from the JSON it gives an error "Enter a valid JSON"
 
Can some one please asist?
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,978 Moderator on at
    Hi
     
    Can you explain what you are trying to do a little more. Why do you have a loop that does nothing but initalize a variable (which you should never do in a loop). I would have thought you are looping through the Power Bi dataset and adding rows into excel based off that, so your add rows should be inside the loop.
     
    1) the thing you created isnt an object because you dont have [ ] around it so add those on the outsides and see what happens, as I cannot see the content of what you are using with the ,'s as those will probably need quotes around them.
     
     
  • Wishamaster89 Profile Picture
    32 on at
    @FLMike
     
    Hi
     
    Sure, so the power bi dataset is a table of data with around 1000 rows. I am trying to pull this in to an excel sheet daily, it will need to over write the previous days.
    data. 
     
    I was just playing around and saw someone else had used the initialize variable thing but  i suppose it is not needed.  
     
    So now the loop is passing through each row of the "body" from the Parse Json step. 
     
    When i test it , blank rows are added to the excel file so something is missing, I assume it is the"add rows inside the loop" step, I am not sure how to do this please?
     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard