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

Community site session details

Session Id :
Power Automate - Power Automate Desktop
Answered

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

(1) ShareShare
ReportReport
Posted on by 989 Super User 2025 Season 2
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? 
Categories:
I have the same question (0)
  • CU06020208-0 Profile Picture
    2 on at
    How to Insert a Row into Data Table with Power Fx Enabled
    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
  • Esbastian Profile Picture
    24 on at
    How to Insert a Row into Data Table with Power Fx Enabled
    Thanks!

    It is madness how broken this simple activity is.
  • Suggested answer
    eetuRobo Profile Picture
    4,007 Super User 2025 Season 2 on at
    How to Insert a Row into Data Table with Power Fx Enabled
    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 755 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 437 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard