Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

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.

  • Community Power Platform Member Profile Picture
    on at
    Re: Replacing the blank spaces between lines with the next line

    Thank you very much, the solution works very well😊

  • Verified answer
    v-LilyW-msft Profile Picture
    on at
    Re: Replacing the blank spaces between lines with the next line

    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
    Re: Replacing the blank spaces between lines with the next line

    Mikey89_5-1642189838420.png

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Replacing the blank spaces between lines with the next line

    Mikey89_0-1642189540999.png

     
     

     

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: Replacing the blank spaces between lines with the next line

    @Anonymous 

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

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow