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 / Replacing the blank sp...
Power Automate
Answered

Replacing the blank spaces between lines with the next line

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I'm trying to create a Power Automate flow that has the ability to eliminate spaces in the body of the email and only add the dynamic content that's been chosen by the user when filling out the MS form.

 I have attached a copy of my Power Automate flow. Thank you for your help.

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Anonymous 

    Sorry - I don't see the copy of your Flow.  It would actually be better if you post screen shots.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Mikey89_0-1642189540999.png

     
     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Mikey89_5-1642189838420.png

     

  • Verified answer
    v-LilyW-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous 

    Has your problem been solved?

    I set up a flow, you can refer to below screenshots to see if it helps.

    This is my test Form

    vLilyWmsft_6-1642494889600.png

    Flow in details:

    vLilyWmsft_5-1642494877292.png

    Expression1:

    if(empty(outputs('Compose')),null,concat('How old are your?','</br>',outputs('Compose'),'</br>'))

    Expression2:

    if(empty(outputs('Compose_2')),null,concat('Do you like your job?','</br>',outputs('Compose_2'),'</br>'))

    Expression3:

    if(empty(outputs('Compose_3')),null,concat('Your department?','</br>',outputs('Compose_3'),'</br>'))
    Expression4:
    if(empty(outputs('Compose_4')),null,concat('Where is your workplace?','</br>',outputs('Compose_4'),'</br>'))

    vLilyWmsft_9-1642495035815.png

    vLilyWmsft_10-1642495099202.png

    Save and test the flow.

    When a new response is submitted, Test2 will receive an email like below.

    vLilyWmsft_7-1642494950099.pngvLilyWmsft_8-1642494984234.png

    Hope the content above may help you.

    Best Regards

    If my answer helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you very much, the solution works very well😊

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

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard