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 / Getting oneDrive conte...
Power Automate
Answered

Getting oneDrive content and replacing CR with CRLF

(0) ShareShare
ReportReport
Posted on by 6

I am reading from a onedrive file using "Get file content" the text seems to wrap is there a way I can insert CRLF where CR is?

 

the file in notepad displays correctly but when I get content and insert it as body into email , is there a way that i can modify the text replacing cr with crlf?

 

robatsasktel_0-1708111986082.png

 

Categories:
I have the same question (0)
  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @robatsasktel 

     

    In outlook email body, we need to use <br> html tag for line break. So, we need to replace \r\n with <br> tag using an expression with replace function. Expression needs to be added in the separate expression box as shown below:

    ManishSolanki_0-1708171484700.png

    replace(body('Get_file_content'),decodeUriComponent('%0D%0A'),'<br>')

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • robatsasktel Profile Picture
    6 on at

    OK I will try that , weirdly I had originally built this using UIPath and it worked there reading the text file and putting it in as body.

  • robatsasktel Profile Picture
    6 on at

    HAHA that worked perfectly 

    thanks Manish!!

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