cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mikey89
New Member

Replacing the blank spaces between lines with the next line

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Mikey89 

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.

 

View solution in original post

5 REPLIES 5
ScottShearer
Super User
Super User

@Mikey89 

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

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Mikey89_0-1642189540999.png

 
 

 

Mikey89_5-1642189838420.png

 

Hi @Mikey89 

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.

 

Mikey89
New Member

Thank you very much, the solution works very well😊

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

PWREduCon768x460.png

Join us at PWR EduCon - A Power Platform Conference

Learn from the top Power BI, Power Apps, Power Automate & Power Virtual Agents experts!

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Users online (3,015)