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 datatable row v...
Power Automate
Suggested Answer

Create datatable row variable, with variables as values

(1) ShareShare
ReportReport
Posted on by 63

Hi I'm trying to create an excel row, which I want to insert into an excel row, row by row.

 

Created a datatable variable, with variables as input. But I only get %value1% %value2% in the excel row, and not the actual value of the variable as i created in the row. Guess I have the wrong syntax, or escaping?

 

wrr.png

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Can you get this into text?  Such as:

    Variable1, Variable2, Variable3

     

    Because then you could paste it into an excel row and use UI elements to Data, Text to columns, comma delimited.

  • roccolord Profile Picture
    63 on at

    Thanks, but I'm not following what you are suggesting, I'm afraid.

  • roccolord Profile Picture
    63 on at

    Correct syntax for the above is:

    %{[MyName, PNO, MyNbrVisits, MyDouble, SavedMyEmployees.Count, Gender] }%

    So just drop the % from the variables and their values will be filled in each column in the excel.

  • kimmer Profile Picture
    4 on at

    THANK YOU! 🙂

  • Suggested answer
    Ukiman1014 Profile Picture
    on at
    When I tried using these examples they worked BUT they just kept adding values to the same row over and over again (basically overwriting the same row).  Here is the syntax to keep adding new rows, with variables as the values.  I assume if you wanted a static value somewhere in there, you'd just enclose it in single quotes (').
     


    I used this syntax to first create the data table, naming each column.
    Set variable
    %{ ^['Column Name 1', 'Column Name 2'] }%

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard