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 / List of item to Datatable
Power Automate
Answered

List of item to Datatable

(0) ShareShare
ReportReport
Posted on by

Hi all I hope you can help me with this

I have a list in the image.

deerzzxdell_0-1693990012169.png

And I want to insert them in a data table which has 3 columns. Item 0, 1 ,2 will be in the first row 3, 4, 5 will be in the second row and continue like this. 

I have created the data table and try to use loop with insert row to data table but still doesn't work out. 

 

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Try using Join text with a white space as a delimiter. This will result in a single string. Then use Parse text on the joined text with regular expressions, using \d+\s[A-Z]+\s[A-Z]+ as the pattern. Make sure you un-tick the checkbox that says "Find first occurrence only", so it returns all matches. This will result in a list where every item will contain 3 items from your original list like this:

    1. 00095296810000 PRIIND ST
    2. 00980563266000 PRIIND ST
    3. 01180006007000 PRIIND ST

    With this, you can use a For each loop on the Matches and you can use Split text on each current item, using a white space as the delimiter. You can then use Insert row to data table and use the output of Split text as the row to insert.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • deerzzxdell Profile Picture
    on at

    hello, thank you for providing the solution! Everything seems fine at first but when I look through the output data after I use parse text there's some error. 

    This image is the data that parse text return in matches

     

    deerzzxdell_0-1694399201487.png

     

    And this is the data before I use parse text.

    deerzzxdell_2-1694399306050.png

     

    As you can see, in item#3 it should be 'ST' not 'DB'. 'DB' should be with item#4.

  • deerzzxdell Profile Picture
    on at

    I can fix it by myself now. Thank you!

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 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard