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,968 Super User 2026 Season 2 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 142 Super User 2026 Season 2

Last 30 days Overall leaderboard