Skip to main content

Notifications

Community site session details

Community site session details

Session Id : dmGbabmbzSeARpbVpMe8ql
Power Automate - Power Automate Desktop
Answered

To create DataTable in Power Automate Desktop

Like (0) ShareShare
ReportReport
Posted on 4 Apr 2022 12:10:33 by

Hi everyone,

 

Can any one tell me ,

1) how e can add Datatable activity in Power automate desktop, ?

2) How we can store in dadatble variable, so that finally we write that variable into ExcelFile?

3) How to convert variable to Datatable?

 

 

 

 

Please help me!!

I have to store value in Excel file,Any suggestions/Hint will work.

 

Please give suggestions.

Thanks in Advance.

 

Categories:
  • hoernchen Profile Picture
    21 on 22 Aug 2022 at 07:00:02
    Re: To create DataTable in Power Automate Desktop

    Great, thx for the solution (at least for my question 😊 )

  • Niraj466 Profile Picture
    73 on 16 Aug 2022 at 16:23:29
    Re: To create DataTable in Power Automate Desktop

    what @JCiriello98 mentioned, that works. However, it doesn't make sense to have first row (row 0) must be available. I'm appending dynamic rows and this row 0 was required to delete at later step. 

     

    I followed the older method using Set variable to create data table.

     

    Niraj466_0-1660666443454.png

     

    However, I'm seeing that the column name are not actually created what I mentioned as list. If we see, I used '_' (underscore) for the columns names : 'Queue_Name', 'Row_Id', 'Queue_Id' while defining column names (^ caret sign) in Set variable. But if we see this in Variable value after running this action, the column name values are updated without underscore. [Underscore is still available with the first column name : 'DTStatus_ToUpdte'.]

     

    Please note that I made the correction (from without underscore to with underscore) in column names later for better readability. It looks like something memory issue. This happens even after rebooting machine as well.

     

    Anyone have idea why the latest column names are not updating in Data table flow variable? This is failing at the further step where the column names are used with and without underscore.

     

     

     

  • ryule Profile Picture
    927 Super User 2024 Season 1 on 05 Aug 2022 at 18:19:27
    Re: To create DataTable in Power Automate Desktop

    can't believe i never tried that combination; nicely done, thank you!

  • JCiriello98 Profile Picture
    21 on 05 Aug 2022 at 17:51:19
    Re: To create DataTable in Power Automate Desktop

    See my response to hoernchen above on how to insert a row to a data table without making a list first.

  • JCiriello98 Profile Picture
    21 on 05 Aug 2022 at 17:47:01
    Re: To create DataTable in Power Automate Desktop

    You came pretty close with your last try. It should look like this:

    JCiriello98_0-1659721281904.png

    So the format for a datarow is a comma separated list contained by square brackets inside of percentage signs.

    Note how ColumnNVariable are variable names containing the values DataN, while 'Data3' and 'Data4' are hardcoded values contained in single quotes.

     

    This is what the datatable looks like after the insert step has run:

    JCiriello98_1-1659721497901.png

    *I created the datatable with the InitN values already there before the insert happened.

  • ryule Profile Picture
    927 Super User 2024 Season 1 on 28 Jul 2022 at 16:26:02
    Re: To create DataTable in Power Automate Desktop

    I 100% agree with you that you should be able to insert new data directly into the table. I haven't figured out how to do it using these new Actions.

    I did discover you can insert a row into the datatable with a list, as long as the list has the same amount of rows as the datatable has columns.

    So for instance, below, I created a list with 3 rows of values, and then created a datatable with 3 columns, then inserted the list as a row, and it worked....

    ryule_0-1659025555454.png

     

  • hoernchen Profile Picture
    21 on 28 Jul 2022 at 09:59:59
    Re: To create DataTable in Power Automate Desktop

    Hi all, I have checked it out and I did not manage to add data to a data table row. Which format is needed to do that? My tries with a defined table of 4 colums were:

    2022-07-28 11_58_17-Window.jpg

     

    • 1,2,3,4
    • 1;2;3;4
    • "1";"2";"3";"4"
    • '1';'2';'3';'4'
    • 1+2+3+4
    • ['1'] + ......... 

    Any info how to solve that?

     

    @microsoft colleagues:

    • Would be great if those infos will be added directly to the info button next to each step, it's always a try and error
    • There's an option to delete a row, why isn't there a option to delete a column as well?
  • ryule Profile Picture
    927 Super User 2024 Season 1 on 27 Jul 2022 at 18:19:52
    Re: To create DataTable in Power Automate Desktop

    Yes I have since discovered that; thanks! And I just saw they introduced some new DataTable actions, but haven't checked them out yet!

    https://powerautomate.microsoft.com/en-us/blog/power-automate-for-desktop-july-2022-update/

  • korebreach2022 Profile Picture
    21 on 27 Jul 2022 at 18:16:17
    Re: To create DataTable in Power Automate Desktop

    The key to using variables to set items in a datatable (which makes little sense) is to remove the % signs from both ends of the variable.  Where you may think that %MyTable + [%variable1%, %variable2%]% would be correct, it's actually %MyTable + [variable1, variable2]% .  This is a strange quirk of the engine because if you enclose the variables in % signs (like you would do anywhere else) PAD will try to "pair" the % at the start of the first variable with the % at the start of the statement, essentially making a variable called, "%MyTable +[%". The information following that incorrect variable is then interpreted as garbage so it throws an error.

  • amanwadhwa990 Profile Picture
    6 on 15 May 2022 at 22:19:55
    Re: To create DataTable in Power Automate Desktop

    Use %vData + [rowd, rowdd]% where rowd , rowdd are variables and vData is datatable.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 18 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 6

#2
John_Mavridis Profile Picture

John_Mavridis 6 Microsoft Employee

Overall leaderboard