web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Replace a delimiter wi...
Power Automate
Answered

Replace a delimiter with a line break when composing HTML?

(0) ShareShare
ReportReport
Posted on by 332

I'm working on a flow that is triggered when a new item is created in a Sharepoint list. 

 

I have a Compose action that includes HTML that I'm using to make a PDF report. One of the columns in my Sharepoint list includes a series of names separated by semicolons:

 

Person 1; Person 2; Person3, etc. 

 

The column type is "multiple lines of text" (plain text). When I include that field in my HTML as dynamic content, I want it to be formatted with line breaks after each name instead of the semicolons, like this:

 

Person 1

Person 2

Person 3

 

Any suggestions would be greatly appreciated. Thanks.

Categories:
I have the same question (0)
  • Verified answer
    vivekpande18 Profile Picture
    894 Super User 2024 Season 1 on at

    Hi @T_A_M ,

     

    Please find below steps.

     

    1- Initialize variable - HTML

    vivekpande18_0-1652877722841.png

    2- Compose action to hold semicolon values from your list. I have taken hard coded value

    vivekpande18_1-1652877795913.png

    3- Loop over the person values 

    vivekpande18_2-1652877826040.png

    Input : split(outputs('Compose_-_Semicolon_Delimited_Value'),';')

    split the compose value by semicolon.

     

    4- Append value in string variable

    vivekpande18_3-1652877914154.png

    5 - Now append the string outside of apply to each loop

    vivekpande18_4-1652877962729.png

     

    6 - Add the above variable value in your html.

     

    Output:

     

    vivekpande18_5-1652878024858.png

     

    The entire flow

     

    vivekpande18_6-1652878079463.png

     

     

    Thanks

    Vivek Pande

     

    If this post helps answer your question, please click on "Accept as Solution" to help others find it more quickly.

    if you thought this post was helpful, please give it a Thumbs Up

  • T_A_M Profile Picture
    332 on at

    That worked perfectly. 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

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!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard