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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to add line break ...
Power Automate
Answered

How to add line break after , in power automate.

(0) ShareShare
ReportReport
Posted on by 12

Hi

Is it possible to add line breaks in power automate? I have created a Forms answer and there is a question with a long line for text, the user has been instructed to end the line with a ",", I would therefore like to break the lines in the power automate so that when the flow sends me an email with new answers, the answers should be filtered according to this way.
Answer 1
Answer 2
Answer 3
Today I get these answers: answer 1, answer 2, answer 3.

Categories:
I have the same question (1)
  • Verified answer
    Caspar_Rubin Profile Picture
    831 on at

    Hey,

     

    you could create a variable (initialize variable action) named "NewLine", Type "String" and Value is just a new line (press enter once inside the text field)

    Then you can use the replace() function to replace all commas with the NewLine variable. 

    Expression used: 

     

    replace(outputs('Compose_-_Anwer'), ',',variables('NewLine'))
     
    change the 'outputs('Compose_-_Anwer')' part with the dynamic value of the answer of the form...
     
    So basically this:
     
    Caspar_Rubin_0-1659433744637.png

     

     

    results in this:

     

    Caspar_Rubin_1-1659433759883.png

     

     

    let us know if this works for you!

     

    cheers

  • MicSokoli Profile Picture
    12 on at

    Hi Caspar
    Thank you for the answer.

    I dont understand what you mean by "change the 'outputs('Compose_-_Anwer')' part with the dynamic value of the answer of the form..."

    I will send you my flow and you can see what i have done wrong since its not formating.

    Please see pictues below.

    Pic1.PNGPic2.PNG

     

  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    Because your intended output is an email, you want a BR tag, not a new line. Take a look at the following:

     

    break.png

    This produces the output:

    answer 1<br /> answer 2<br /> answer 3

    Which would work well in your email.

    The expression I used is:

    replace(outputs('Compose'), ',','<br />')

    You would need to replace: outputs('Compose') with the response from your form.

     

    Blog: tachytelic.net

    YouTube: https://www.youtube.com/c/PaulieM/videos

    If I answered your question, please accept it as a solution 😘

  • MicSokoli Profile Picture
    12 on at

    Than you Paulie this did it! and also thank you very much Caspar!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard