Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How to split and insert in a new line for each selected item in a multiline textbox

(0) ShareShare
ReportReport
Posted on by 100

Hi All,

 

How do I split each values (links) from a SharePoint Multiline Column to a newline in Send Email Action?

Email looks like this when received. I need help to split each links to a new line

vicsaisan_5-1708657749516.png

 

Power Automate Flow Send email action

vicsaisan_6-1708657982655.png

 

 

This is the  Combo Box &  Multiline textbox in my power apps

 

The  Combo box concatenates the selected values to a multi line textbox.  the data from the multiline textbox is saved in a SharePoint List (Multiline Column).

vicsaisan_3-1708657483838.png

 

SharePoint list column

vicsaisan_2-1708657454636.png

 

 

 

 

 

 

 

 

  • floxfloat Profile Picture
    100 on at
    Re: How to split and insert in a new line for each selected item in a multiline textbox

    Hi Manish, 

    I managed to resolved the issue. your solution really helps me a lot to address the issue. 

     

    Updated my textbox default formula as: 

     Concat(ddDummyAdditionalFolder_1.SelectedItems,'SharePoint Link'," ;" & Char(13))
     
    use this expression instead:
    replace(triggerOutputs()?['body/AdditionalFolder'],' ;','<br>')  😄
     
    Thanks a lot @ManishSolanki  🙂🙏
     
     




  • floxfloat Profile Picture
    100 on at
    Re: How to split and insert in a new line for each selected item in a multiline textbox

    Hi @ManishSolanki ,

     

    I've checked the internal column is correct as per below:

    vicsaisan_0-1708674950076.png

     

    replace(triggerOutputs()?['body/AdditionalFolder'],decodeUriComponent('%0A'),'<br>')

     

     As I checked the flow test result I cannot see \n from the flow instance output see below sample:


    <strong>SharePoint folder: </strong>https://seviora.sharepoint.com/sites/ffmc/sh/FFMCGeneral/Forms/AllItems.aspx<br>
    <strong>SharePoint folder access permission:</strong>Allow READ-ONLY and remove other permissions<br>
    <br>
    <strong>Additional SharePoint folders:<br>
    </strong>https://seviora.sharepoint.com/sites/ffmc/0and%20Cash%20Management/Forms/AllItems.aspx
    https://seviora.sharepoint.com/sites/ffmc/sh/General/Forms/AllItems.aspx
    https://seviora.sharepoint.com/sites/ffmc/sh/tamped%20Documents/Forms/AllItems.aspx
    https://seviora.sharepoint.com/sites/ffmc/sh/inaBD/Forms/AllItems.aspx<strong><br>
    </strong><br>

     

     

    Not sure if this will help @ManishSolanki ,

    This is what I did in the textbox in power apps. this is linked to multiline column in my SharePoint list

    vicsaisan_1-1708675608994.png

     

    below is the default formula for the textbox. returning the links based on the selected value in the ComboBox.

    vicsaisan_2-1708675687042.png

     

     

     

     

     

     

     

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: How to split and insert in a new line for each selected item in a multiline textbox

    Hi @vicsaisan 

     

    Pls check the internal name of column "Additional folders" and also check the value of same field in previous flow instance. It should have \n in between each links. If its different, then pls share with me by masking actual urls.

     

    Below is the post where I have instructed the steps to get internal name of the column in SharePoint:

    Solved: Filter Query for Get Items - anything due in 7-14 ... - Power Platform Community (microsoft.com)

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

  • floxfloat Profile Picture
    100 on at
    Re: How to split and insert in a new line for each selected item in a multiline textbox

    Hi @ManishSolanki ,

     

    Thanks a lot for your help 🙂  I'm not sure if my implementation is right.

     my expressions goes like this ...
    replace(triggerOutputs()?['body/AdditionalFolder'],decodeUriComponent('%0A'),'<br>')
     
    vicsaisan_0-1708669772185.png

     

    vicsaisan_4-1708669942587.png

     

     

    here's the result:

    vicsaisan_2-1708669827834.png

     

     


     

     
     
     
     
     
     
     

     

     

  • Verified answer
    ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: How to split and insert in a new line for each selected item in a multiline textbox

    Hi @vicsaisan 

     

    Pls try replacing new line feed '\n' with <br> tag using an expression. Expression needs to be added in the expression box:

    ManishSolanki_0-1708658950566.png

    replace(<dynamic additional folder value>,decodeUriComponent('%0A'),'<br>')

    Pls pass the internal name of additional folders column from dynamic content window in the above expression.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492