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 a row to the Table...
Power Automate
Answered

Add a row to the Table Error

(3) ShareShare
ReportReport
Posted on by 53
Hello,
 
I am Passing Gallery items in JSON form to Power automate through power apps, I am creating file, table and Add a row to the table , in Row what data do i give?
When i do apply to each inside Add a row to the table i have given current item it is showing Bad request.
 
Screenshot 2025-04-25 133146.png
Categories:
I have the same question (0)
  • Suggested answer
    rzaneti Profile Picture
    4,491 Super User 2026 Season 1 on at
     
    You must pass a JSON object inside the Row input, where each key must match the name of the respective Excel column.
     
    Check this example:
     
    This is the output:
     
     
    For referencing the individual properties for the currently iterated item in your Apply to each, you can use an expression. I'm also sharing some content for reference on how to work with objects and expressions in Power Automate:
    - Inserting and updating data into Excel Tables with Power Automate: https://digitalmill.net/2023/07/24/inserting-and-updating-data-into-excel-tables-with-power-automate/
     
     
    Let me know if it works for you or if you need any additional help!
     
    If this solved your issue, please mark it as Accepted Answer.
    👍 If it helped, feel free to give it a like!

    🌐 Explore more Power Platform content on my Website or on my ▶️ YouTube
    💼 Find me on LinkedIn
  • stampcoin Profile Picture
    5,153 Super User 2026 Season 1 on at
     
    May I ask why you don't use Excel Online connector to add the row ? then you don't need that actually unless you use it in the flow for other task.
     

    Enjoy Power Platform and have a great day 🚀 |  My LinkedIn

    If the answer helps, please consider 👍, Thanks.

     
     
  • PR-25040755-0 Profile Picture
    53 on at
    HI, @stampcoin

    i actually want to export the Gallery data on to a excel file and download the file when the user clicks on a button in Power Apps
  • PR-25040755-0 Profile Picture
    53 on at
     
    Since i am passing through JSON  i have added  like you said, but it is still showing me bad request.
    Screenshot 2025-04-28 081308.png
  • stampcoin Profile Picture
    5,153 Super User 2026 Season 1 on at
    I think use excel connector will be easy, and add Html text control to combine the url for the excel. done.😊
    If you like power automate,  I think @rzaneti can help.
     

    Enjoy Power Platform and have a great day 🚀 |  My LinkedIn

    If the answer helps, please consider 👍, Thanks.

  • Verified answer
    rzaneti Profile Picture
    4,491 Super User 2026 Season 1 on at
     
    It looks like you have some special characters in some of the column names, such as dots:
     
     
    When retrieving the column names with special characters to Power Automate, Excel encodes it in XML. So a table with a column name like this:
     
    Will be read this way by Power Automate:
     
    Then in your Add a rows present in a table action, you must follow the same pattern:
     
    As a solution, I would recommend you to copy the keys of the JSON that you are inputting to Row and ask Copilot or ChatGPT to encode it to XML.
     
    Let me know if it works for you or if you need any additional help!
  • PR-25040755-0 Profile Picture
    53 on at
     
    I have a code where i have connected the excel table , and it is updating correctly.
     
    The reason i  shifted to Power automate was this app will be used by 19 departments where they can select the button , if i use download it is launching the file for me , not downloading the file.
     
     
  • stampcoin Profile Picture
    5,153 Super User 2026 Season 1 on at
    Glad to hear you made it. 🍶 😊
    There are many ways to make it, just choose the best for you.
     
     

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