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 / How to Insert Line Bre...
Power Automate
Suggested Answer

How to Insert Line Breaks for Commas in Power Automate for Word

(1) ShareShare
ReportReport
Posted on by 2

Hi everyone,

I'm working on a Power Automate flow where I need to format text for a Word document. Specifically, I want to replace each comma (,) in the text with a line break, so that each comma is converted into a new paragraph when the text is inserted into Word.

I've tried using various methods to insert line breaks, such as \n, char(10), and HTML <br> tags, but none of these seem to be working as expected. The \n is displayed as text instead of creating a new line, and the other methods do not seem to have the desired effect.

Has anyone encountered a similar issue or have any suggestions on how to achieve this in Power Automate? Any tips or solutions would be greatly appreciated!

Thank you in advance!

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,960 Moderator on at
    Hi,
     
    Please try this expression, because Power Apps doesn't care lol about Char and \n etc so you use the following to get what you want.

     
    replace(yourstring,',',decodeUriComponent('%0A'))

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 293

#2
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 223 Most Valuable Professional

Last 30 days Overall leaderboard