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 / How to Insert a Row in...
Power Automate
Answered

How to Insert a Row into Data Table with Power Fx Enabled

(1) ShareShare
ReportReport
Posted on by 991 Moderator
What's the proper way to write the "New value(s)" expression for an "Insert row into data table" action in a PDA flow with "Power Fx" enabled?  Is it possible?  

I'm trying to expand my knowledge of Power Automate Desktop and have been exprimenting with "Power Fx Enabled" PDA flows.

 
I noticed an issue with inserting rows into a data table that I haven't been able to figure out.  I tried reading the Power Automate Desktop documentation and searching the forums, but didn't see an answer.

First of all, the notation required is different when I use "Power Fx Enabled" vs without.
 
This works fine on the Power Fx DISABLED flow:
 
 
The only way I could get the Power FX ENABLED flow to run without errors was to write the expression like the following (the %[]% format would cause an error):
 
 
However, this inserts an object into each table column:
 
 
I saw one suggestion on another similar question about setting the table to a variable, and then using a Collect() Power Fx expression, but I could not get that to work either.

Anyone know the proper way to do this, or why it's behaving like this? 
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,484 Super User 2026 Season 1 on at
    I think the Power Fx enabled version is still lacking in some ways like data table handling. Only ways I have been able to insert rows so that they have normal values are:

    1. create "Insert row into data table" in a regular PAD flow first. Then copy and paste that into you Power Fx enabled flow. Like so:

    Downside is that if you try to edit that action ever in Power Fx it will break since it wants corrext power fx syntax. So that action editing has to be done in the regular flow and the copy and paste  it to the power fx one.

    2. Create a script that inserts the row into data table. Like C# script:


    Run .NET script action:


    Result:


    Similar issue I responded some months ago: https://community.powerplatform.com/forums/thread/details/?threadid=301cb040-f994-ef11-8a6a-000d3a8c383b
  • Esbastian Profile Picture
    24 on at
    Thanks!

    It is madness how broken this simple activity is.
  • CU06020208-0 Profile Picture
    4 on at
    I tried using powerfx Collect function, but it didn't work.
     
    Only way I have been able to insert rows so that they have normal values was by create the list element by element...
     
     
    I hope this can help.
     
    Regards
     
    Jaime

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
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard