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 do you properly us...
Power Automate
Suggested Answer

How do you properly use newline "\n" in power automate

(1) ShareShare
ReportReport
Posted on by 6
Hi, since I couldnt find much about this online, and wanted to make a post so people in future with the same issue can find this when searching. Basically, when Im using the newline command on "Post message in a chat or channel", here is my command:
 
 
 

replace(string(outputs(‘Get_file_content’)?[‘body’]), ‘Member’, ‘Member \n’)

 
 
Basically, I want to have a new line after every occurence of the word "Member", but when I do this, it simply prints "\n" in plain text instead of a new line
 
Well, my actual goal is to have a new line after each row of the excel file, but since every one of them ends with "Member" I figured I could do it this way, but if there is an easier way to just do this instead that would be a bonus but I would really like to know what the proper format for using new line is. Thank you!!
Categories:
I have the same question (0)
  • Suggested answer
    Ellis Karim Profile Picture
    11,999 Super User 2026 Season 1 on at
    Try using the encoded characters for newline: %0A'
     
    Example:
     
    replace(variables('varString'),'member', concat('member',decodeUriComponent('%0A')))
     
     

     
     
    Ellis
  • Michael E. Gernaey Profile Picture
    53,969 Moderator on at
    Hi!~!
     
    Can you share some of the ways you were searching. Trying to validate if our answers are working (in searches) or not, as its been answered a lot, but I definitely see people not able to find this or other topics).
     
    Wondering if its the new forum or not
     
    BTW EKrams answer is perfect and correct.
     
    Hopefully we can figure out the search issues
     
    THanks!!

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 612

#2
Valantis Profile Picture

Valantis 344

#3
11manish Profile Picture

11manish 303

Last 30 days Overall leaderboard