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 / split text from Ms For...
Power Automate
Answered

split text from Ms Forms then add lines to table

(0) ShareShare
ReportReport
Posted on by 262

Hi 

 

I have a form that users can enter a multiple lines of text, up to 50 Lines.  I would like to each line to an excel table.  Is this possible?

 

Categories:
I have the same question (0)
  • Verified answer
    rzaneti Profile Picture
    4,491 Super User 2026 Season 1 on at

    Hi @Skybluekid ,

     

    You will need to transform your form question answer into an array and loop it. Check the process below.

     

    Excel table

    For this example, we will populate this empty table:

    rzaneti_0-1690235445330.png

     

    Dummy Text 

    For this example, I'm using the text below, stored in a string variable. In the following steps, you can replace the string variable for your Form answer dynamic content.

    rzaneti_1-1690235507990.png

     

    Step 1 - Split the text:

    Initialize an array variable and store the following expression:  split(variables('original_text'), decodeUriComponent('%0A')). This expression is splitting your text by line break:

    rzaneti_2-1690235583955.png

     

    The array will look like this:

    rzaneti_3-1690235627247.png

     

    Step 2 - Loop array:

    Use your array as input to an 'Apply to each' loop. Inside the loop, insert an 'Add row into a table' action, populate the file and table details and, in the relevant field (in my case, 'value'), include the dynamic content of the 'Current item' from 'Apply to each' action:

    rzaneti_5-1690235715871.png

     

    Output:

    After run the flow, this will be your output (the empty record at row 2 already existed when I created the table): 

    rzaneti_6-1690235780936.png

     

    Let me know if it works for you or if you need any additional help!

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

    https://digitalmill.net/

  • Skybluekid Profile Picture
    262 on at

    Thank you it worked a treat

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
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard