web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTML to Sharepoint list
Power Automate
Answered

HTML to Sharepoint list

(0) ShareShare
ReportReport
Posted on by

This seems a far stretch, but I'm asking anyway...

 

I have an variable/expression built into my PowerAutomate flow that recognizes paragraph breaks in a field. The field value is fed to a Sharepoint list with the paragraph breaks translated to html. The column type has to be rich text to accept the text alignment. Sharepoint column rich text type does not support advanced json code formatting, so when json is added to the rich text column it shows the html at face value, which is a mess.

 

I really want to have the column show a color if there is a value and no color if the field is blank. I can't do this to the rich text column without it showing the face value html in the column and I can't change it to a plain text type because it loses the paragraph breaks from the flow.

 

I'm wondering if there is a way to manipulate the data in the flow to remove the html before it feeds to the SP list so I can use a plain text type but still have the value recognize the paragraph line breaks.

 

Seems impossible but there are experts here that are insanely smarter than I am.

Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,090 Super User 2026 Season 1 on at

    I am not completely understanding what you are doing, but if you want to replace <br> in HTML with a line break for a text field in a SharePoint list, use this expression to generate the line break:

    decodeUriComponent('%0A')

    Then I suppose you could use something like this to find and replace them in your HTML:

    replace(outputs('Get_item')?['body/HTML'],'<br>',decodeUriComponent('%0A'))

     

    This will just add one break, so you may want to use concat to put two line breaks.

     

  • KellyHickman Profile Picture
    on at

    Thank you David, so if I currently have this as my expression

    replace(outputs('Get_response_details')?['body/r4ab453db95514931af404042ffe9bbbc'],variables('Line Break'),'<br>')

    what would your suggestion look like as a replacement for this expression with multiple line breaks? There may be more than one. I don't understand replacing the body/r4ab453db95514931af404042ffe9bbbc of the expression with body/HTML.

    KellyHickman_0-1711741560085.png

     

  • Verified answer
    David_MA Profile Picture
    14,090 Super User 2026 Season 1 on at

    I am not really sure. I thought you said you had HTML code and the issue with populating it into a SharePoint text field is that the <br> values where showing up in the text field. If so, I would pass wherever this HTML is coming from through a Compose action, then when you populate the SharePoint list (I assume that is what the image above is), use the expression to replace them from the body of the Compose action.

  • KellyHickman Profile Picture
    on at

    This absolutely worked!! THANK YOU!

  • David_MA Profile Picture
    14,090 Super User 2026 Season 1 on at

    Awesome. Glad it worked!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard