Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Need to have new line after each full stop /formatting Paragraph

(0) ShareShare
ReportReport
Posted on by 62
I need to get the new line after each full stop for this highlighted output values, i have tried with 
replace(coalesce(item()?['dst_majorfindings'], ''), '.', '.<br>') but this doesn't work in "Select" or "HTML table" actions, any idea to fix this ?
 
current result;- 
"Contributing Factor":
 
The sun was setting behind the mountains, casting a warm golden glow over the valley. Birds chirped their evening songs, and a gentle breeze rustled the leaves of the ancient oak trees. In the distance, a river sparkled as it wound its way through the landscape, reflecting the colors of the sky. It was a perfect moment of tranquility, a reminder of the simple beauty that nature offers every day.
 
Expected result:-           
 
The sun was setting behind the mountains, casting a warm golden glow over the valley.
Birds chirped their evening songs, and a gentle breeze rustled the leaves of the ancient oak trees.
In the distance, a river sparkled as it wound its way through the landscape, reflecting the colors of the sky.
It was a perfect moment of tranquility, a reminder of the simple beauty that nature offers every day
 
 
 
  • uchiha1234 Profile Picture
    uchiha1234 62 on at
    Need to have new line after each full stop /formatting Paragraph
     
    replace(item(), '.', concat('.', decodeUriComponent('%0A'))) doesn't work inside select unfortunatly , displays the same paragraph 
  • uchiha005808 Profile Picture
    uchiha005808 8 on at
    Need to have new line after each full stop /formatting Paragraph
    Inside select 
    replace(item(), '.', concat('.', decodeUriComponent('%0A')))
    doesnt work. It just showing the same paragraph without any formatting 
  • Chriddle Profile Picture
    Chriddle 7,371 on at
    Need to have new line after each full stop /formatting Paragraph
    You describe 2 different cases:
     
    The line break character in Power Automate can be written as decodeUriComponent('%0A')
    E.g. within a Select:
    replace(item(), '.', concat('.', decodeUriComponent('%0A')))
     
     
    A line break is written as <br> in HTML, but is HTML encoded if it is inserted before conversion using the "Create HTML Table" action.
    So you have to do the conversion first and then the replacement with <br>.
    E.g.
    replace(body('Create_HTML_table'), '.', '.<br>')
  • sroo Profile Picture
    sroo 890 on at
    Need to have new line after each full stop /formatting Paragraph
    I tried this 
    replace(item()?['Contributing Factor'],'.','. <br>')
     
    It gave the result in the flow: 
    Contributing Factor""The sun was setting behind the mountains, casting a warm golden glow over the valley. <br> Birds chirped their evening songs, and a gentle breeze rustled the leaves of the ancient oak trees. <br> In the distance, a river sparkled as it wound its way through the landscape, reflecting the colors of the sky. <br> It was a perfect moment of tranquility, a reminder of the simple beauty that nature offers every day. <br>"
      
    In which HTML action are you testing it in? I tried in HTML in outlook and it worked there. 
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard