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 / How to split and inser...
Power Automate
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

 

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    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.

     

  • floxfloat Profile Picture
    100 on at

    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

     

     


     

     
     
     
     
     
     
     

     

     

  • Manish Solanki Profile Picture
    15,169 Moderator on at

    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

    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

     

     

     

     

     

     

     

  • floxfloat Profile Picture
    100 on at

    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  🙂🙏
     
     




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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard