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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create datatable row v...
Power Automate
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard