web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Remove CRLF from email body

(0) ShareShare
ReportReport
Posted on by 10

Hi all,

Is there a way to remove the CRLF (Carriage Return Line Feed) from email body?

I want to save the email body as txt file but without the CRLF.

I tried at the beginning with uriComponent:

Capturecrlfi.PNG

But the flow failed on some emails and cannot explain why. The error received:

Captureerr.PNG

 

Also tried this, but without any luck:

Capturecrlf.PNG

 

Any ideas?

Thank you!

I have the same question (0)
  • Verified answer
    Paulie78 Profile Picture
    8,418 Moderator on at
    Re: Remove CRLF from email body

    You are on the right lines, but a bit over complicated. Try simply putting this expression into a compose:

    replace(triggerOutputs()?['body/body'], decodeUriComponent('%0A'), '' )
  • alexmia Profile Picture
    10 on at
    Re: Remove CRLF from email body

    Hi @Paulie78 ,

    Thanks for your quick answer! 🙂

    I used '%0D%0A' instead of '%0A' and it seems to work fine.

    I will put it into production and test it all day tomorrow and see how it works, hope I don't receive some errors.
    I'll get back to you!

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard