cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kgordish
Resolver I
Resolver I

Condense, Remove, Replace Multiple <br> to a single <br>

Hello,
Relatively new Flow/Power Automate user. 

I have a compose statement with a bunch of conditional statements. 
1. If Change in SharePoint Column A = true, Then Show X otherwise Blank

2. If Change in SharePoint Column B = true, Then Show X otherwise Blank

3. and so forth (for over 60+ columns)
Then this compose output feeds into a Send Email Field

Formatting works fine when only 1 columns changes, but when 2 columns changes I get a string when I really want a single line break added.
However, when add <br>  after each conditional statements I get too many line breaks.

 

Compose

1. If Change in SharePoint Column A = true, Then Show X otherwise Blank <br>

2. If Change in SharePoint Column B = true, Then Show X otherwise Blank  <br>

3. and so forth

Is there a way to reduce a variable number of <br> to simply one?

Current: 

<br>
<br>

<br>

<br>

Text
<br>

<br>

 

Desired:
<br>

Text
<br>

Thanks for sharing any ideas.

 

1 ACCEPTED SOLUTION

Accepted Solutions
annajhaveri
Super User
Super User

@kgordish  i think add BR in the same compose function where we are doing SHOW X, that way you will have <BR> after each SHOW X, and there wont be any unnecessary <BR>

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
annajhaveri
Super User
Super User

@kgordish  i think add BR in the same compose function where we are doing SHOW X, that way you will have <BR> after each SHOW X, and there wont be any unnecessary <BR>

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.
kgordish
Resolver I
Resolver I

@annajhaveri  Funny you mention that tactic. Trying that right now. Sometimes the a simple solution is the best solution. Hard a moment of clarity when I stepped away from coding last night. Walking away from a problem sometimes affords a moment of clarity.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (2,256)