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

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,335 Super User 2025 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

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