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 / Going crazy trying to ...
Power Automate
Answered

Going crazy trying to Insert Records on a data table with variables

(0) ShareShare
ReportReport
Posted on by 21

I have been trying to get this work with no success, I am able to insert records to the data table with text

with the insert row action but if I built the exact same syntax but put on a variable it doesnt work

 

rpatinopty_0-1717376059205.png

I created a variable gridinsert which has the same syntax as the manual static text but it keeps sending error amount of values provided to be added dont match the columns of the data table 

 

rpatinopty_2-1717376406838.png

Any ideas is greatly appreciated

 

 

I have the same question (0)
  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @rpatinopty ,

     

    Can just provide the screenshot of both DataTables and wanted to how many columns both Contains.

    Meanwhile,Double-check the number of columns in your data table.Both Should have same.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @rpatinopty 

     

    Allow me to provide an example to illustrate how I implemented it in my specific scenario.

     

    Here's the structure of my data table:

    Deenuji_0-1717396645957.png

     

    And this is the format of my list:

    Deenuji_1-1717396918254.png

     

    Instead of attempting to create individual rows, I directly extracted values from the grid list and inserted them into my grid records data table.

    Deenuji_2-1717396965314.png

     

    After the insertion, the results appear as follows:

    Deenuji_3-1717397028624.png

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

     

  • rpatinopty Profile Picture
    21 on at

    It is a 2 columns data table and this is the content of the variable I am using called GridInsert using the insert row int data table action

     

    rpatinopty_0-1717418977606.png

    rpatinopty_1-1717419065875.png

     

     

  • Verified answer
    eetuRobo Profile Picture
    4,572 Super User 2026 Season 1 on at

    It seems like your Set variable GridInsert is string of text. So thats why it will give error since you are trying to insert a string of text into a datatable that is expecting values for two columns. Since you only give it one string it gets value for one column alone.
    Your set variable GridInsert should looks like this: 

    eetuRobo_0-1717420016947.png

     

    eetuRobo_1-1717420060380.png

     

     

  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @eetuRobo 

     

    My above suggested approach also works in similar way but where instead of creating a row, directly I pushed values from list into data table 🙂 

  • rpatinopty Profile Picture
    21 on at

    It worked thanks a lot  god bless 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227

#2
David_MA Profile Picture

David_MA 204 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 177

Last 30 days Overall leaderboard