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

Replacing the blank spaces between lines with the next line

(0) ShareShare
ReportReport
Posted on by

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,270 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
    on at

    Mikey89_0-1642189540999.png

     
     

     

  • Community Power Platform Member Profile Picture
    on at

    Mikey89_5-1642189838420.png

     

  • Verified answer
    v-LilyW-msft Profile Picture
    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
    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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard