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 / Insert variable to Dat...
Power Automate
Answered

Insert variable to Datable, only insert first row of variable

(0) ShareShare
ReportReport
Posted on by 15

Hello, I have a problem while insert the variable where it has few rows. Example:

79_0-1671823584460.png

79_1-1671823623296.png

Any ideas why it happens and what could be a work around for this?

79_2-1671823664020.png

 

 

Thank you.

  • VJR Profile Picture
    7,635 on at

    Hi @79 

    The way you have used the Set variable is not the way to create a datatable using Set Variable.

     

    Refer below section in this link. Variable data types - Power Automate | Microsoft Learn

     

    Additionally, you can create a datatable using the Set variable action and the programming array notation. This notation consists of multiple single-dimension arrays separated by commas and enclosed in curly brackets. The final expression must have the following form: %{['Product1', '10 USD'], ['Product2', '20 USD']}%.

  • 79 Profile Picture
    15 on at

    It's not the problem, problem is that when I get data from Get details of element on webpage, I receive variable structure like that:

    79_0-1671865323642.png

    and when I try to add this variable to the table it only adds first line.. The same problem appeared in your proposed way:

    79_1-1671865379385.png

    Result as you can see only '1' is in the table and we missing 2 and 3:

    79_2-1671865396656.png

     

  • Verified answer
    VJR Profile Picture
    7,635 on at

    It is clear from your first screenshot that the variable is a Text one.

    Just use the Split Text with delimiter as Newline. This will automatically add them as separate rows in a 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard