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

Notifications

Announcements

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

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard