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 / Condense, Remove, Repl...
Power Automate
Unanswered

Condense, Remove, Replace Multiple to a single

(0) ShareShare
ReportReport
Posted on by 188

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.

 

Categories:
I have the same question (0)
  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @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>

  • kgordish Profile Picture
    188 on at

    @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.

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard