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 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,690 Super User 2025 Season 2 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,369 Super User 2025 Season 2 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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard