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 / Create Data Table_Columns
Power Automate
Unanswered

Create Data Table_Columns

(0) ShareShare
ReportReport
Posted on by

How to Create Data table with columns and how to add the data into the data table

I have the same question (0)
  • NikosMoutzou Profile Picture
    Microsoft Employee on at

    Hi Prad!

     

    At the moment, Power Automate Desktop provides three actions that generate a datatable as output:

    • the Read from Excel worksheet action
    • the Execute SQL statement action
    • the Extract data from web page action.

    Please note that Power Automate Desktop doesn't provide a direct way to create a datatable.

     

    More information can be found here.

  • Baybrown_Scott Profile Picture
    30 on at

    Is there a way to take the executed data and selectively write part of it to certain cells in an excel file?

  • miketran13 Profile Picture
    720 on at

    Hi Baybrown_Scott,

     

    You can write data into a Cell if you know the exact position of the cell, because the Write to Excell Worksheet in PAD requires you to specify the Column and Row and Value to write. 

    Regards,

    Mike

  • Baybrown_Scott Profile Picture
    30 on at

    I have an excel macro workbook created by another company to populate order information and model codes. I need to copy our ERP data into it to help the user save time on data entry and accuracy.

    Wha is the best solution to get SQL data into an excel worksheet - but in specified cells only (Like a form).

    I have tried the Desktop flow in opening the ERP, but it is in a RemoteApp environment and has trouble registering the windows of the app. It appears to work if you log into the RemoteApp than the ERP versus reading the app when the user already has it open but is still unreliable in just opening the ERP windows to copy field data from.

    I am trying with Power Automate Desktop and have extracted the SQL data in a row but cannot view it in a table format to assign the data fields to the excel cells. It does not show the column header in the output of the SQL Execute as well. This method has an easier way of writing to specific cells in excel.

    I investigated a Cloud flow, but it outputs to a table to excel and I want to put specific data into specific cells in the excel file.

    Any thoughts are welcome.

  • miketran13 Profile Picture
    720 on at

    Hi Baybrown_Scott,

     

    If you just want to extract data from SQL to an excel file, then you just need to use the Cloud Flow. That is enough and the easiest way. 

    But if you want to manipulate the data from the datatable and write it into an excel file then you should better use PAD. 

    You said you have extracted data from SQL and yes, there is no way for you to see the data in the datatable unless you are debugging. 

    From my experiences, I will write all the data that extracted from SQL to a CSV file, then I will find the order of the columns by looking into the real data extracted. 

    After that, we will go through all the data in the CSV file, manipulate and consolidate it then I will have the final data. 

    In order to write data to an existing Excel file, you aslo need to read all the data from this file and then indicate which row or column that you want to update.

     

    Regards,

    Mike

  • Baybrown_Scott Profile Picture
    30 on at

    Thanks, Mike, for the help here,

     

    I appear to have it working but it looks like you can only write 1 field value at a time per write task.

    Do I have to create multiple SQL executes for each field and write individually?

     

    -Scott

  • miketran13 Profile Picture
    720 on at

    Hi Scott,

     

    I think a better solution from my view is that you should have a SQL script for querying all the data in this script and just execute this script one time to get all the data you need. Then you can just consolidating and manipulating the data you got before write it to the excel because you were right, we can only write 1 cell per write task in PAD.

     

    Thanks and hope it can help you. 

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

  • Baybrown_Scott Profile Picture
    30 on at

    We are getting there.

    I am pulling over 1 row of data at a time in SQL.  Is there a way to store this data in column name variables?

    Then I can write those variables to excel.

    If so, what is the PAD element to use?

  • Baybrown_Scott Profile Picture
    30 on at

    I got it figured out now.  How to retrieve Order information from our ERP and write it to an excel file (form). 

    High level of the flow below:

    1. Display Input dialog (Type in Order Number)
    2. Trim Text (Remove Blank Spaces)
    3. Open SQl Connection
    4. Execute SQl Statement
    5. Write to CSV File
    6. Read from CSV File
    7. Retrieve data table column to list (Creates variable for 1 column of data only)
    8. Launch excel
    9. Write to excel worksheet (Writes 1 colun of data only)
  • miketran13 Profile Picture
    720 on at

    Great to hear Scott, hope you found your solution.

     

    Thanks

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 269 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 184 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard